Class DefaultCallback
The default ICallback implementation.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: PushTechnology.ClientInterface.Client.Callbacks
Assembly: Diffusion.Client.dll
Syntax
public class DefaultCallback : 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.