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

The default IContextCallback{TContext} implementation. More...

Inheritance diagram for PushTechnology.ClientInterface.Client.Callbacks.DefaultContextCallback< TContext >:
PushTechnology.ClientInterface.Client.Callbacks.IContextCallback< in TContext > PushTechnology.ClientInterface.Client.Callbacks.DefaultContextStream< TContext > PushTechnology.ClientInterface.Client.Features.Control.Topics.TopicControlRemovalContextCallbackDefault< TContext >

Public Member Functions

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

Detailed Description

The default IContextCallback{TContext} implementation.

This simply logs OnError calls at debug level. This should be overridden to perform more specific error handling.

Template Parameters
TContextThe context object type.

Member Function Documentation

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

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.

Implements PushTechnology.ClientInterface.Client.Callbacks.IContextCallback< in TContext >.


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