Class DefaultCallback
The default ICallback implementation.
Inheritance
DefaultCallback
Implements
Namespace: PushTechnology.ClientInterface.Client.Callbacks
Assembly: Diffusion.Client.dll
Syntax
public class DefaultCallback : object, ICallback
Remarks
This simply logs OnError(ErrorReason) calls at debug level. This should be overridden to perform more specific error handling.
Methods
OnError(ErrorReason)
Notification of a contextual error related to this callback.
Declaration
public virtual void OnError(ErrorReason errorReason)
Parameters
Type | Name | Description |
---|---|---|
ErrorReason | errorReason | The reason for the error. |
Remarks
This is analogous to an exception being raised. Situations in which this method is called include the session being closed, a communication timeout, or a problem with the provided parameters. No further calls will be made to this callback for the call context.