Context manager for the user property and local/client/global context dictionaries that uses thread local storage (TLS) to maintain per-thread context. More...
Public Member Functions | |
virtual IPrincipal | GetUser () |
Gets the current user principal. More... | |
virtual void | SetUser (IPrincipal principal) |
Sets the current user principal. More... | |
ContextDictionary | GetLocalContext () |
Gets the local context dictionary. More... | |
void | SetLocalContext (ContextDictionary localContext) |
Sets the local context dictionary. More... | |
ContextDictionary | GetClientContext () |
Gets the client context dictionary. More... | |
void | SetClientContext (ContextDictionary clientContext) |
Sets the client context dictionary. More... | |
ContextDictionary | GetGlobalContext () |
Gets the global context dictionary. More... | |
void | SetGlobalContext (ContextDictionary globalContext) |
Sets the global context dictionary. More... | |
IServiceProvider | GetDefaultServiceProvider () |
Gets the default IServiceProvider More... | |
void | SetDefaultServiceProvider (IServiceProvider serviceProvider) |
Sets the default IServiceProvider More... | |
IServiceProvider | GetServiceProvider () |
Gets the service provider for current scope More... | |
void | SetServiceProvider (IServiceProvider scope) |
Sets the service provider for current scope More... | |
Properties | |
bool | IsValid [get] |
Returns a value indicating whether the context is valid. More... | |
Properties inherited from Csla.Core.IContextManager | |
bool | IsValid [get] |
Gets a value indicating whether this context manager is valid for use in the current environment. More... | |
Context manager for the user property and local/client/global context dictionaries that uses thread local storage (TLS) to maintain per-thread context.
Definition at line 20 of file ApplicationContextManagerTls.cs.
ContextDictionary Csla.Core.ApplicationContextManagerTls.GetClientContext | ( | ) |
Gets the client context dictionary.
Implements Csla.Core.IContextManager.
Definition at line 80 of file ApplicationContextManagerTls.cs.
IServiceProvider Csla.Core.ApplicationContextManagerTls.GetDefaultServiceProvider | ( | ) |
Gets the default IServiceProvider
Implements Csla.Core.IContextManager.
Definition at line 134 of file ApplicationContextManagerTls.cs.
ContextDictionary Csla.Core.ApplicationContextManagerTls.GetGlobalContext | ( | ) |
Gets the global context dictionary.
Implements Csla.Core.IContextManager.
Definition at line 113 of file ApplicationContextManagerTls.cs.
ContextDictionary Csla.Core.ApplicationContextManagerTls.GetLocalContext | ( | ) |
Gets the local context dictionary.
Implements Csla.Core.IContextManager.
Definition at line 61 of file ApplicationContextManagerTls.cs.
IServiceProvider Csla.Core.ApplicationContextManagerTls.GetServiceProvider | ( | ) |
Gets the service provider for current scope
Implements Csla.Core.IContextManager.
Definition at line 153 of file ApplicationContextManagerTls.cs.
|
virtual |
Gets the current user principal.
Implements Csla.Core.IContextManager.
Definition at line 38 of file ApplicationContextManagerTls.cs.
void Csla.Core.ApplicationContextManagerTls.SetClientContext | ( | ContextDictionary | clientContext | ) |
Sets the client context dictionary.
clientContext | Context dictionary |
Implements Csla.Core.IContextManager.
Definition at line 97 of file ApplicationContextManagerTls.cs.
void Csla.Core.ApplicationContextManagerTls.SetDefaultServiceProvider | ( | IServiceProvider | serviceProvider | ) |
Sets the default IServiceProvider
serviceProvider | IServiceProvider instance |
Implements Csla.Core.IContextManager.
Definition at line 143 of file ApplicationContextManagerTls.cs.
void Csla.Core.ApplicationContextManagerTls.SetGlobalContext | ( | ContextDictionary | globalContext | ) |
Sets the global context dictionary.
globalContext | Context dictionary |
Implements Csla.Core.IContextManager.
Definition at line 123 of file ApplicationContextManagerTls.cs.
void Csla.Core.ApplicationContextManagerTls.SetLocalContext | ( | ContextDictionary | localContext | ) |
Sets the local context dictionary.
localContext | Context dictionary |
Implements Csla.Core.IContextManager.
Definition at line 71 of file ApplicationContextManagerTls.cs.
void Csla.Core.ApplicationContextManagerTls.SetServiceProvider | ( | IServiceProvider | scope | ) |
Sets the service provider for current scope
scope | IServiceProvider instance |
Implements Csla.Core.IContextManager.
Definition at line 164 of file ApplicationContextManagerTls.cs.
|
virtual |
Sets the current user principal.
principal | User principal value |
Implements Csla.Core.IContextManager.
Definition at line 53 of file ApplicationContextManagerTls.cs.
|
get |
Returns a value indicating whether the context is valid.
Definition at line 29 of file ApplicationContextManagerTls.cs.