AzureSignalR-samples icon indicating copy to clipboard operation
AzureSignalR-samples copied to clipboard

Consider adding error handling to the samples

Open vicancy opened this issue 7 years ago • 0 comments

Currently we have something like:

public async Task MyRestCallHandler{ var result = await CalcResult(); await hub.Clients.SendAsync(...); return result; }

And if I don't wrap call to the hub into try-catch, the client gets 500 error, although the operation was generally ok. Sometimes client is an automated test which fails and gives a false alarm. All samples I find do not care for exceptions handling when contacting signalr.

vicancy avatar Oct 19 '18 05:10 vicancy