Context manager for the user property and local/client/global context dictionaries that uses static fields to maintain per-thread context. More...
Public Member Functions | |
ContextDictionary | GetClientContext (ApplicationContext.ExecutionLocations executionLocation) |
Gets the client context dictionary. More... | |
IServiceProvider | GetDefaultServiceProvider () |
Gets the default IServiceProvider More... | |
ContextDictionary | GetLocalContext () |
Gets the local context dictionary. More... | |
IPrincipal | GetUser () |
Gets the current user principal. More... | |
void | SetClientContext (ContextDictionary clientContext, ApplicationContext.ExecutionLocations executionLocation) |
Sets the client context dictionary. More... | |
void | SetDefaultServiceProvider (IServiceProvider serviceProvider) |
Sets the default IServiceProvider More... | |
void | SetLocalContext (ContextDictionary localContext) |
Sets the local context dictionary. More... | |
IServiceProvider | GetServiceProvider () |
Gets the service provider for current scope More... | |
void | SetServiceProvider (IServiceProvider scope) |
Sets the service provider for current scope More... | |
void | SetUser (IPrincipal principal) |
Sets the current user principal. More... | |
Properties | |
bool | IsStatefulContext [get] |
Gets a value indicating whether the context manager is stateful. More... | |
bool | IsValid [get] |
Returns a value indicating whether the context is valid. More... | |
ApplicationContext | ApplicationContext [getset] |
Gets or sets a reference to the current ApplicationContext. More... | |
Properties inherited from Csla.Core.IContextManager | |
bool | IsStatefulContext [get] |
Gets a value indicating whether this context manager is used in a stateful context (e.g. More... | |
bool | IsValid [get] |
Gets a value indicating whether this context manager is valid for use in the current environment. More... | |
ApplicationContext | ApplicationContext [getset] |
Gets or sets a reference to the current ApplicationContext. More... | |
Context manager for the user property and local/client/global context dictionaries that uses static fields to maintain per-thread context.
Definition at line 20 of file ApplicationContextManagerStatic.cs.
ContextDictionary Csla.Core.ApplicationContextManagerStatic.GetClientContext | ( | ApplicationContext.ExecutionLocations | executionLocation | ) |
Gets the client context dictionary.
executionLocation |
Implements Csla.Core.IContextManager.
Definition at line 43 of file ApplicationContextManagerStatic.cs.
IServiceProvider Csla.Core.ApplicationContextManagerStatic.GetDefaultServiceProvider | ( | ) |
Gets the default IServiceProvider
Definition at line 51 of file ApplicationContextManagerStatic.cs.
ContextDictionary Csla.Core.ApplicationContextManagerStatic.GetLocalContext | ( | ) |
Gets the local context dictionary.
Implements Csla.Core.IContextManager.
Definition at line 59 of file ApplicationContextManagerStatic.cs.
IServiceProvider Csla.Core.ApplicationContextManagerStatic.GetServiceProvider | ( | ) |
Gets the service provider for current scope
Definition at line 104 of file ApplicationContextManagerStatic.cs.
IPrincipal Csla.Core.ApplicationContextManagerStatic.GetUser | ( | ) |
Gets the current user principal.
Implements Csla.Core.IContextManager.
Definition at line 68 of file ApplicationContextManagerStatic.cs.
void Csla.Core.ApplicationContextManagerStatic.SetClientContext | ( | ContextDictionary | clientContext, |
ApplicationContext.ExecutionLocations | executionLocation | ||
) |
Sets the client context dictionary.
clientContext | Context dictionary |
executionLocation |
Implements Csla.Core.IContextManager.
Definition at line 78 of file ApplicationContextManagerStatic.cs.
void Csla.Core.ApplicationContextManagerStatic.SetDefaultServiceProvider | ( | IServiceProvider | serviceProvider | ) |
Sets the default IServiceProvider
serviceProvider | IServiceProvider instance |
Definition at line 87 of file ApplicationContextManagerStatic.cs.
void Csla.Core.ApplicationContextManagerStatic.SetLocalContext | ( | ContextDictionary | localContext | ) |
Sets the local context dictionary.
localContext | Context dictionary |
Implements Csla.Core.IContextManager.
Definition at line 96 of file ApplicationContextManagerStatic.cs.
void Csla.Core.ApplicationContextManagerStatic.SetServiceProvider | ( | IServiceProvider | scope | ) |
Sets the service provider for current scope
scope | IServiceProvider instance |
Definition at line 113 of file ApplicationContextManagerStatic.cs.
void Csla.Core.ApplicationContextManagerStatic.SetUser | ( | IPrincipal | principal | ) |
Sets the current user principal.
principal | User principal value |
Implements Csla.Core.IContextManager.
Definition at line 122 of file ApplicationContextManagerStatic.cs.
|
getset |
Gets or sets a reference to the current ApplicationContext.
Definition at line 132 of file ApplicationContextManagerStatic.cs.
|
get |
Gets a value indicating whether the context manager is stateful.
Definition at line 26 of file ApplicationContextManagerStatic.cs.
|
get |
Returns a value indicating whether the context is valid.
Definition at line 31 of file ApplicationContextManagerStatic.cs.