Diffusion .NET Client Library  6.1.5
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
PushTechnology.ClientInterface.Client.Features.ChangePrincipalContextCallbackDefault< TC > Class Template Reference

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

Inheritance diagram for PushTechnology.ClientInterface.Client.Features.ChangePrincipalContextCallbackDefault< TC >:
PushTechnology.ClientInterface.Client.Features.IChangePrincipalContextCallback< in TC > PushTechnology.ClientInterface.Client.Features.IContextCallback< in TContext >

Public Member Functions

virtual 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...
 
virtual void OnPrincipalChanged (TC context)
 Notification that a request to change the session principal was successful. More...
 
virtual void OnAuthenticationFailure (TC context)
 This will be called if an attempt to change the session principal failed because authentication failed at the server. This could be because the named principal was unknown or the supplied credentials were invalid. More...
 
- Public Member Functions inherited from PushTechnology.ClientInterface.Client.Features.IContextCallback< in TContext >
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

Default implementation of IChangePrincipalContextCallback{TC}.

This simply logs the OnPrincipalChanged callback at 'Debug' level and OnAuthenticationFailure at 'Warn' level. These methods may be overridden as required.

Template Parameters
TCThe context object type.

Member Function Documentation

virtual void PushTechnology.ClientInterface.Client.Features.ChangePrincipalContextCallbackDefault< TC >.OnAuthenticationFailure ( TC  context)
virtual

This will be called if an attempt to change the session principal failed because authentication failed at the server. This could be because the named principal was unknown or the supplied credentials were invalid.

Parameters
contextThe context object supplied when making the call. May be null.

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

virtual void PushTechnology.ClientInterface.Client.Features.ChangePrincipalContextCallbackDefault< TC >.OnDiscard ( TC  context)
virtual

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
virtual void PushTechnology.ClientInterface.Client.Features.ChangePrincipalContextCallbackDefault< TC >.OnPrincipalChanged ( TC  context)
virtual

Notification that a request to change the session principal was successful.

Parameters
contextThe context object supplied when making the call. May be null.

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


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