Diffusion .NET Client Library
6.1.5
|
The callback interface used to return results from a call to the server. More...
Public Member Functions | |
void | OnDiscard (TContext context) |
Called to notify that a call context was closed prematurely, typically due to a timeout or the session being closed. More... | |
The callback interface used to return results from a call to the server.
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{TContext} behave identically.
Since 5.0
TContext | The context object type. |
void PushTechnology.ClientInterface.Client.Features.IContextCallback< in TContext >.OnDiscard | ( | TContext | context | ) |
Called to notify that a call context was closed prematurely, typically due to a timeout or the session being closed.
No further calls will be made for the context.
context | The context object associated with this callback. |
Implemented in PushTechnology.ClientInterface.Client.Features.ContextCallbackDefault< TContext >.