Diffusion .NET API  5.9.24
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Pages
PushTechnology.ClientInterface.Client.Features.Control.Clients.SessionDetailsContextCallbackDefault< TC > Class Template Reference

Default implementation of ISessionDetailsContextCallback{TC}. More...

Inheritance diagram for PushTechnology.ClientInterface.Client.Features.Control.Clients.SessionDetailsContextCallbackDefault< TC >:
PushTechnology.ClientInterface.Client.Features.Control.Clients.ISessionDetailsContextCallback< in TC > PushTechnology.ClientInterface.Client.Features.IContextCallback< in TC >

Public Member Functions

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...
 
void OnReply (TC context, SessionId sessionId, ISessionDetails sessionDetails)
 Receive session details. More...
 
void OnUnknownSession (TC context, SessionId sessionId)
 Called if the session id is unknown. More...
 

Detailed Description

Default implementation of ISessionDetailsContextCallback{TC}.

This simply logs OnReply calls at 'Info' level and OnUnknownSession calls at 'Warn' level. These methods may be overridden as required to perform more specific processing.

Template Parameters
TCThe context object type.

Member Function Documentation

void PushTechnology.ClientInterface.Client.Features.Control.Clients.SessionDetailsContextCallbackDefault< TC >.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.

Parameters
context

Implements PushTechnology.ClientInterface.Client.Features.IContextCallback< in TC >.

void PushTechnology.ClientInterface.Client.Features.Control.Clients.SessionDetailsContextCallbackDefault< TC >.OnReply ( TC  context,
SessionId  sessionId,
ISessionDetails  sessionDetails 
)

Receive session details.

Parameters
contextThe context object the application supplied when making the call; may be null.
sessionIdThe session id.
sessionDetailsThe requested session details.

Implements PushTechnology.ClientInterface.Client.Features.Control.Clients.ISessionDetailsContextCallback< in TC >.

void PushTechnology.ClientInterface.Client.Features.Control.Clients.SessionDetailsContextCallbackDefault< TC >.OnUnknownSession ( TC  context,
SessionId  sessionId 
)

Called if the session id is unknown.

Parameters
contextThe context object the application supplied when making the call; may be null.
sessionIdThe requested session identity.

Implements PushTechnology.ClientInterface.Client.Features.Control.Clients.ISessionDetailsContextCallback< in TC >.


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