Diffusion .NET API  5.9.24
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Pages
PushTechnology.ClientInterface.Client.Callbacks.ICallback Interface Reference

Callback interface that provides responses from the server. Extensions of this interface have callback methods that provide results for successful calls. More...

Inheritance diagram for PushTechnology.ClientInterface.Client.Callbacks.ICallback:
PushTechnology.ClientInterface.Client.Callbacks.DefaultCallback PushTechnology.ClientInterface.Client.Callbacks.IStream PushTechnology.ClientInterface.Client.Features.Control.Clients.IConfigurationCallback PushTechnology.ClientInterface.Client.Features.Control.Clients.IUpdateStoreCallback PushTechnology.ClientInterface.Client.Features.Control.Clients.SecurityControl.IConfigurationCallback PushTechnology.ClientInterface.Client.Features.Control.Clients.SecurityControl.IUpdateStoreCallback PushTechnology.ClientInterface.Client.Features.Control.ISessionPropertiesCallback PushTechnology.ClientInterface.Client.Features.Control.Topics.ISendToFilterCallback PushTechnology.ClientInterface.Client.Features.Control.Topics.ISubscriptionByFilterCallback PushTechnology.ClientInterface.Client.Features.Control.Topics.ITopicControlRemovalCallback PushTechnology.ClientInterface.Client.Features.Control.Topics.ITopicUpdaterUpdateCallback PushTechnology.ClientInterface.Client.Session.ISessionOpenCallback

Public Member Functions

void OnError (ErrorReason errorReason)
 Notification of a contextual error related to this callback. This is analogous to an exception being raised. Situations in which More...
 

Detailed Description

Callback interface that provides responses from the server. Extensions of this interface have callback methods that provide results for successful calls.

Direct extensions of this interface support a single callback each time the callback is used in a call (the call context). If the call fails to return a result, for example if the session is closed or the operation times out, OnError(ErrorReason) will be called. Each call to the server will result in invocation of either a single callback method or OnError.

The IStream extension supports multiple responses for each call.

If the server returns a response for an unknown call context (typically a late response for a call context has timed out), an error will be reported through the session error event.

Member Function Documentation

void PushTechnology.ClientInterface.Client.Callbacks.ICallback.OnError ( ErrorReason  errorReason)

Notification of a contextual error related to this callback. This is analogous to an exception being raised. Situations in which

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

Parameters
errorReasonerrorReason a value representing the error; this can be one of constants defined in ErrorReason, or a feature-specific reason.

Implemented in PushTechnology.ClientInterface.Client.Callbacks.DefaultCallback, PushTechnology.ClientInterface.Client.Features.Control.Topics.SubscriptionByFilterCallbackDefault, and PushTechnology.ClientInterface.Client.Features.Control.Topics.ITopicUpdaterUpdateCallbackDefault.


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