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 (ApplicationContext.ExecutionLocations executionLocation) |
Gets the client context dictionary. More... | |
void | SetClientContext (ContextDictionary clientContext, ApplicationContext.ExecutionLocations executionLocation) |
Sets the client context dictionary. More... | |
Protected Member Functions | |
virtual void | OnApplicationContextSet () |
Method called when the ApplicationContext property has been set to a new value. 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... | |
Default context manager for the user property and local/client/global context dictionaries.
Definition at line 18 of file Csla/Core/ApplicationContextManager.cs.
ContextDictionary Csla.Core.ApplicationContextManager.GetClientContext | ( | ApplicationContext.ExecutionLocations | executionLocation | ) |
Gets the client context dictionary.
executionLocation |
Implements Csla.Core.IContextManager.
Definition at line 82 of file Csla/Core/ApplicationContextManager.cs.
ContextDictionary Csla.Core.ApplicationContextManager.GetLocalContext | ( | ) |
Gets the local context dictionary.
Implements Csla.Core.IContextManager.
Definition at line 64 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 41 of file Csla/Core/ApplicationContextManager.cs.
|
protectedvirtual |
Method called when the ApplicationContext property has been set to a new value.
Reimplemented in Csla.Xaml.ApplicationContextManager.
Definition at line 119 of file Csla/Core/ApplicationContextManager.cs.
void Csla.Core.ApplicationContextManager.SetClientContext | ( | ContextDictionary | clientContext, |
ApplicationContext.ExecutionLocations | executionLocation | ||
) |
Sets the client context dictionary.
clientContext | Context dictionary |
executionLocation |
Implements Csla.Core.IContextManager.
Definition at line 92 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 73 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 56 of file Csla/Core/ApplicationContextManager.cs.
|
getset |
Gets or sets a reference to the current ApplicationContext.
Definition at line 102 of file Csla/Core/ApplicationContextManager.cs.
|
get |
Gets a value indicating whether the context manager is stateful.
Definition at line 27 of file Csla/Core/ApplicationContextManager.cs.
|
get |
Returns a value indicating whether the context is valid.
Definition at line 32 of file Csla/Core/ApplicationContextManager.cs.