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

The callback interface that provides responses from the server, together with a context object supplied by the application. More...

Inheritance diagram for PushTechnology.ClientInterface.Client.Callbacks.IContextCallback< in TContext >:
PushTechnology.ClientInterface.Client.Callbacks.DefaultContextCallback< TContext > PushTechnology.ClientInterface.Client.Callbacks.IContextStream< in TContext > PushTechnology.ClientInterface.Client.Features.Control.Clients.IConfigurationContextCallback< in TC > PushTechnology.ClientInterface.Client.Features.Control.Clients.ISessionPropertiesContextCallback< TC > PushTechnology.ClientInterface.Client.Features.Control.Clients.IUpdateStoreContextCallback< in TC > PushTechnology.ClientInterface.Client.Features.Control.Clients.SecurityControl.IConfigurationContextCallback< in TC > PushTechnology.ClientInterface.Client.Features.Control.Clients.SecurityControl.IUpdateStoreContextCallback< in TC > PushTechnology.ClientInterface.Client.Features.Control.Topics.ISendToFilterContextCallback< in TC > PushTechnology.ClientInterface.Client.Features.Control.Topics.ISubscriptionByFilterContextCallback< in TC > PushTechnology.ClientInterface.Client.Features.Control.Topics.ITopicControlRemovalContextCallback< in TContext > PushTechnology.ClientInterface.Client.Features.Control.Topics.ITopicUpdaterUpdateContextCallback< in TContext >

Public Member Functions

void OnError (TContext context, ErrorReason errorReason)
 Notification of a contextual error related to this callback. More...
 

Detailed Description

The callback interface that provides responses from the server, together with a context object supplied by the application.

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 this interface and ICallback behave identically.

Since 5.1

Template Parameters
TContextThe context object type.

Member Function Documentation

void PushTechnology.ClientInterface.Client.Callbacks.IContextCallback< in TContext >.OnError ( TContext  context,
ErrorReason  errorReason 
)

Notification of a contextual error related to this callback.

This is analogous to an exception being raised. Situations in which this method is called include the session being closed, a communication timeout, or a problem with the provided parameters. No further calls will be made to this callback for the call context.

Parameters
contextThe context object supplied when making the call. May be null.
errorReasonThe reason for the error.

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


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