Default context manager for the user property and local/client/global context dictionaries. 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... | |
Default context manager for the user property and local/client/global context dictionaries.
Definition at line 20 of file Csla/Core/ApplicationContextManager.cs.
ContextDictionary Csla.Core.ApplicationContextManager.GetClientContext | ( | ) |
Gets the client context dictionary.
Implements Csla.Core.IContextManager.
Definition at line 78 of file Csla/Core/ApplicationContextManager.cs.
IServiceProvider Csla.Core.ApplicationContextManager.GetDefaultServiceProvider | ( | ) |
Gets the default IServiceProvider
Implements Csla.Core.IContextManager.
Definition at line 116 of file Csla/Core/ApplicationContextManager.cs.
ContextDictionary Csla.Core.ApplicationContextManager.GetGlobalContext | ( | ) |
Gets the global context dictionary.
Implements Csla.Core.IContextManager.
Definition at line 95 of file Csla/Core/ApplicationContextManager.cs.
ContextDictionary Csla.Core.ApplicationContextManager.GetLocalContext | ( | ) |
Gets the local context dictionary.
Implements Csla.Core.IContextManager.
Definition at line 61 of file Csla/Core/ApplicationContextManager.cs.
IServiceProvider Csla.Core.ApplicationContextManager.GetServiceProvider | ( | ) |
Gets the service provider for current scope
Implements Csla.Core.IContextManager.
Definition at line 135 of file Csla/Core/ApplicationContextManager.cs.
|
virtual |
Gets the current user principal.
Implements Csla.Core.IContextManager.
Reimplemented in Csla.Windows.ApplicationContextManager, and Csla.Xaml.ApplicationContextManager.
Definition at line 38 of file Csla/Core/ApplicationContextManager.cs.
void Csla.Core.ApplicationContextManager.SetClientContext | ( | ContextDictionary | clientContext | ) |
Sets the client context dictionary.
clientContext | Context dictionary |
Implements Csla.Core.IContextManager.
Definition at line 87 of file Csla/Core/ApplicationContextManager.cs.
void Csla.Core.ApplicationContextManager.SetDefaultServiceProvider | ( | IServiceProvider | serviceProvider | ) |
Sets the default IServiceProvider
serviceProvider | IServiceProvider instance |
Implements Csla.Core.IContextManager.
Definition at line 125 of file Csla/Core/ApplicationContextManager.cs.
void Csla.Core.ApplicationContextManager.SetGlobalContext | ( | ContextDictionary | globalContext | ) |
Sets the global context dictionary.
globalContext | Context dictionary |
Implements Csla.Core.IContextManager.
Definition at line 105 of file Csla/Core/ApplicationContextManager.cs.
void Csla.Core.ApplicationContextManager.SetLocalContext | ( | ContextDictionary | localContext | ) |
Sets the local context dictionary.
localContext | Context dictionary |
Implements Csla.Core.IContextManager.
Definition at line 70 of file Csla/Core/ApplicationContextManager.cs.
void Csla.Core.ApplicationContextManager.SetServiceProvider | ( | IServiceProvider | scope | ) |
Sets the service provider for current scope
scope | IServiceProvider instance |
Implements Csla.Core.IContextManager.
Definition at line 146 of file Csla/Core/ApplicationContextManager.cs.
|
virtual |
Sets the current user principal.
principal | User principal value |
Implements Csla.Core.IContextManager.
Reimplemented in Csla.Windows.ApplicationContextManager, and Csla.Xaml.ApplicationContextManager.
Definition at line 53 of file Csla/Core/ApplicationContextManager.cs.
|
get |
Returns a value indicating whether the context is valid.
Definition at line 29 of file Csla/Core/ApplicationContextManager.cs.