-
Notifications
You must be signed in to change notification settings - Fork 8
SignalREventHub.ExceptionOccurred
G3N7 edited this page Jan 2, 2015
·
1 revision
Curently the kinds of exceptions that get thrown here are:
- ArgumentException - When an events handler has not been registered, the event names don't line up or the handler's dependencies have not all been registered.
- AuthenticationException - When an event is being raised in a context that the user is not allowed to use it.
- Exception - Any exception that happens in one of the handler's async invocations will bubble up here as well.
Simple Implementation:
SignalREventHub.ExceptionOccured += (sender, args) => Debugger.Break();
However, this is also your opportunity to do logging or any other type of exception handling you would like.