Class ChangePrincipalContextCallbackDefault<TContext>
The default IChangePrincipalContextCallback<TContext> implementation.
Inherited Members
Namespace: PushTechnology.ClientInterface.Client.Features
Assembly: Diffusion.Client.dll
Syntax
public class ChangePrincipalContextCallbackDefault<TContext> : ContextCallbackDefault<TContext>, IChangePrincipalContextCallback<TContext>, IContextCallback<TContext>
Type Parameters
Name | Description |
---|---|
TContext | The context type. |
Remarks
This simply logs ISecurity calls at 'debug' level. This can be overridden to perform some more specific action.
Methods
OnAuthenticationFailure(TContext)
The attempt to change the session principal failed because authentication failed at the server.
Declaration
public virtual void OnAuthenticationFailure(TContext context)
Parameters
Type | Name | Description |
---|---|---|
TContext | context | The context for this operation. |
Remarks
This could be because the named principal was unknown or the supplied credentials were invalid.
OnPrincipalChanged(TContext)
The session principal has been successfully changed.
Declaration
public virtual void OnPrincipalChanged(TContext context)
Parameters
Type | Name | Description |
---|---|---|
TContext | context | The context for this operation. |