Diffusion .NET API  5.9.24
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Pages
PushTechnology.ClientInterface.Client.Callbacks.IContextStream< in TContext > Interface Template Reference

An extension of IContextCallback{TContext}that allows many callbacks for each call context. More...

Inheritance diagram for PushTechnology.ClientInterface.Client.Callbacks.IContextStream< in TContext >:
PushTechnology.ClientInterface.Client.Callbacks.IContextCallback< in TContext > PushTechnology.ClientInterface.Client.Callbacks.DefaultContextStream< TContext >

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...
 

Detailed Description

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.

Template Parameters
TContextcontext object type

Member Function Documentation

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.

Parameters
contextthe context object the application supplied when making the call; may be null

Implemented in PushTechnology.ClientInterface.Client.Callbacks.DefaultContextStream< TContext >.


The documentation for this interface was generated from the following file: