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

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

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

Public Member Functions

void OnClose (TC context)
 Notification that a call context was closed normally. No further calls will be made for the call context. More...
 
- Public Member Functions inherited from PushTechnology.ClientInterface.Client.Features.IContextCallback< in TC >
void OnDiscard (TC context)
 Notification that a context was closed prematurely, typically due to a timeout or the session being closed. No further calls will be made for a context. More...
 

Detailed Description

An extension of IContextCallback that allows many callbacks for each call context.

The server may return zero, one, or many results for a call; each result will be supplied to one of the callback methods. When no further results are expected for the call context, OnClose will be called. If a context is closed prematurely (for example, due to the session being closed), OnDiscard will be called. One of OnClose or OnDiscard will be the final callback made for a call context.

Template Parameters
TCThe context object type.

Member Function Documentation

void PushTechnology.ClientInterface.Client.Features.IContextStream< in TC >.OnClose ( TC  context)

Notification that a call context was closed normally. No further calls will be made for the call context.

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

Implemented in PushTechnology.ClientInterface.Client.Features.FetchContextStreamDefault< TC >.


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