Diffusion .NET Client Library  6.1.5
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
PushTechnology.ClientInterface.Client.Features.IContextStream< in TContext > Interface Template Reference

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

Inheritance diagram for PushTechnology.ClientInterface.Client.Features.IContextStream< in TContext >:
PushTechnology.ClientInterface.Client.Features.IContextCallback< in TContext > PushTechnology.ClientInterface.Client.Features.ContextStreamDefault< TContext > PushTechnology.ClientInterface.Client.Features.IFetchContextStream< in TContext > PushTechnology.ClientInterface.Client.Features.FetchContextStreamDefault< TContext > PushTechnology.ClientInterface.Client.Features.FetchContextStreamDefault< TContext >

Public Member Functions

void OnClose (TContext context)
 Called to notify that the stream context was closed normally. More...
 
- Public Member Functions inherited from PushTechnology.ClientInterface.Client.Features.IContextCallback< in TContext >
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...
 

Detailed Description

The 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 the context stream and IStream behave identically.

Since 5.0

Template Parameters
TContextThe context object type.

Member Function Documentation

void PushTechnology.ClientInterface.Client.Features.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.

Implemented in PushTechnology.ClientInterface.Client.Features.ContextStreamDefault< TContext >.


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