Diffusion .NET API
5.9.24
|
Callback interface that provides responses from the server, together with an application supplied context object. More...
Public Member Functions | |
void | OnError (TContext context, ErrorReason errorReason) |
Notification of a contextual error related to this callback. This is analogous to an unchecked exception being raised. Situations in which More... | |
Callback interface that provides responses from the server, together with an application supplied context object.
This interface and its extensions are alternatives to the ICallback interface hierarchy that allow the application to associate an arbitrary context object with each call. Any suitable application object can be provided as the context. It will be passed on to the corresponding callback methods, allowing requests and responses to be correlated. The context object is optional (it may be null
).
In all other respects ICallback and IContextCallback{T} behave identically.
TContext | context object type |
void PushTechnology.ClientInterface.Client.Callbacks.IContextCallback< in TContext >.OnError | ( | TContext | context, |
ErrorReason | errorReason | ||
) |
Notification of a contextual error related to this callback. This is analogous to an unchecked exception being raised. Situations in which
OnError
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.
context | the context object supplied when making the call. May be null . |
errorReason | errorReason a value representing the error; this can be one of constants defined in ErrorReason, or a feature-specific reason. |
Implemented in PushTechnology.ClientInterface.Client.Callbacks.DefaultContextCallback< TContext >.