Diffusion .NET API
5.9.24
|
An extension of IContextCallback{TContext}that allows many callbacks for each call context. More...
Public Member Functions | |
void | OnClose (TContext context) |
Called to notify that the stream context was closed normally. No further calls will be made for the stream context. More... | |
Public Member Functions inherited from PushTechnology.ClientInterface.Client.Callbacks.IContextCallback< in TContext > | |
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... | |
An extension of IContextCallback{TContext}that allows many callbacks for each call context.
This interface and its extensions are alternatives to the IStream 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 IStream and IContextStream{TContext} behave identically.
TContext | context object type |
void PushTechnology.ClientInterface.Client.Callbacks.IContextStream< in TContext >.OnClose | ( | TContext | context | ) |
Called to notify that the stream context was closed normally. No further calls will be made for the stream context.
context | the context object the application supplied when making the call; may be null |
Implemented in PushTechnology.ClientInterface.Client.Callbacks.DefaultContextStream< TContext >.