Class ObserverHandler
Provides methods for checking completion exceptions emitted by message observers.
public static class ObserverHandler
- Inheritance
-
ObserverHandler
- Inherited Members
Methods
IsConnectionDisposed(Exception)
Checks if the exception indicates the connection was disposed.
public static bool IsConnectionDisposed(Exception exception)
Parameters
exceptionExceptionThe exception to check.
Returns
Remarks
This exception is emitted when EmitOnConnectionDispose or EmitOnDispose is set.
IsDisposed(Exception)
Checks if the exception indicates either the observer or connection was disposed.
public static bool IsDisposed(Exception exception)
Parameters
exceptionExceptionThe exception to check.
Returns
Remarks
This exception is emitted when EmitOnDispose, EmitOnObserverDispose, or EmitOnConnectionDispose is set.
IsObserverDisposed(Exception)
Checks if the exception indicates the observer was disposed.
public static bool IsObserverDisposed(Exception exception)
Parameters
exceptionExceptionThe exception to check.
Returns
Remarks
This exception is emitted when EmitOnObserverDispose or EmitOnDispose is set.