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

The callback interface used to return results from a call to the server. More...

Inheritance diagram for PushTechnology.ClientInterface.Client.Features.IContextCallback< in TContext >:
PushTechnology.ClientInterface.Client.Features.ContextCallbackDefault< TContext > PushTechnology.ClientInterface.Client.Features.Control.Clients.IClientContextCallback< in TContext > PushTechnology.ClientInterface.Client.Features.Control.Topics.ICacheSchemaHandler< in TC > PushTechnology.ClientInterface.Client.Features.Control.Topics.ISubscriptionContextCallback< in TC > PushTechnology.ClientInterface.Client.Features.Control.Topics.ITopicControlAddContextCallback< in TContext > PushTechnology.ClientInterface.Client.Features.Control.Topics.ITopicDetailsHandler< in TC > PushTechnology.ClientInterface.Client.Features.IChangePrincipalContextCallback< in TC > PushTechnology.ClientInterface.Client.Features.IContextStream< in TContext > PushTechnology.ClientInterface.Client.Features.IPingContextCallback< in TContext > PushTechnology.ClientInterface.Client.Features.ISendContextCallback< in TC > PushTechnology.ClientInterface.Client.Features.ITopicDetailsContextCallback< in TContext > PushTechnology.ClientInterface.Client.Features.ITopicsCompletionContextCallback< in TContext >

Public Member Functions

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 callback interface used to return results from a call to the server.

This interface and its extensions are alternatives to the ICallback 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 ICallback and IContextCallback{TContext} behave identically.

Since 5.0

Template Parameters
TContextThe context object type.

Member Function Documentation

void PushTechnology.ClientInterface.Client.Features.IContextCallback< in TContext >.OnDiscard ( TContext  context)

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.

Parameters
contextThe context object associated with this callback.

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


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