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 () |
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.
Direct extensions of this interface support a single callback each time the callback is used in a call (the call context). If the call fails to return a result, for example if the session is closed or the operation times out, OnDiscard will be called. Each call to the server will result in invocation of either a single callback method or OnDiscard.
In most cases where a Callback can be used it is also possible to use a IContextCallback{TContext} which may be more useful if there is a need to correlate the Callback invocation with the request that it matches. For example, if the same Callback is used for several requests, it might be useful to be able to associate the reply (or discard) with the request that was made using some context object.
If the server returns a response for an unknown call context (typically a late response for a call context has timed out), an error will be reported to the Session.ISession.ErrorNotified handler.
Since 5.0
void PushTechnology.ClientInterface.Client.Features.ICallback.OnDiscard | ( | ) |
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.
Implemented in PushTechnology.ClientInterface.Client.Features.CallbackDefault, PushTechnology.ClientInterface.Client.Features.Control.Topics.SubscriptionCallbackDefault, PushTechnology.ClientInterface.Client.Features.Control.Topics.SendCallbackDefault, and PushTechnology.ClientInterface.Client.Features.ChangePrincipalCallbackDefault.