Application context manager that uses HttpContext to store context values. More...
Public Member Functions | |
System.Security.Principal.IPrincipal | GetUser () |
Gets the current principal. More... | |
void | SetUser (System.Security.Principal.IPrincipal principal) |
Sets the current principal. More... | |
ContextDictionary | GetLocalContext () |
Gets the local context. More... | |
void | SetLocalContext (ContextDictionary localContext) |
Sets the local context. More... | |
ContextDictionary | GetClientContext () |
Gets the client context. More... | |
void | SetClientContext (ContextDictionary clientContext) |
Sets the client context. More... | |
ContextDictionary | GetGlobalContext () |
Gets the global context. More... | |
void | SetGlobalContext (ContextDictionary globalContext) |
Sets the global context. 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... | |
Public Member Functions inherited from Csla.Core.IContextManager | |
void | SetUser (IPrincipal principal) |
Sets the current principal. More... | |
Properties | |
bool | IsValid [get] |
Gets a value indicating whether this context manager is valid for use in the current environment. 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... | |
Application context manager that uses HttpContext to store context values.
Definition at line 21 of file Csla.Web.Shared/ApplicationContextManager.cs.
ContextDictionary Csla.Web.ApplicationContextManager.GetClientContext | ( | ) |
Gets the client context.
Implements Csla.Core.IContextManager.
Definition at line 82 of file Csla.Web.Shared/ApplicationContextManager.cs.
IServiceProvider Csla.Web.ApplicationContextManager.GetDefaultServiceProvider | ( | ) |
Gets the default IServiceProvider
Implements Csla.Core.IContextManager.
Definition at line 116 of file Csla.Web.Shared/ApplicationContextManager.cs.
ContextDictionary Csla.Web.ApplicationContextManager.GetGlobalContext | ( | ) |
Gets the global context.
Implements Csla.Core.IContextManager.
Definition at line 99 of file Csla.Web.Shared/ApplicationContextManager.cs.
ContextDictionary Csla.Web.ApplicationContextManager.GetLocalContext | ( | ) |
Gets the local context.
Implements Csla.Core.IContextManager.
Definition at line 65 of file Csla.Web.Shared/ApplicationContextManager.cs.
IServiceProvider Csla.Web.ApplicationContextManager.GetServiceProvider | ( | ) |
Gets the service provider for current scope
Implements Csla.Core.IContextManager.
Definition at line 134 of file Csla.Web.Shared/ApplicationContextManager.cs.
System.Security.Principal.IPrincipal Csla.Web.ApplicationContextManager.GetUser | ( | ) |
Gets the current principal.
Implements Csla.Core.IContextManager.
Definition at line 42 of file Csla.Web.Shared/ApplicationContextManager.cs.
void Csla.Web.ApplicationContextManager.SetClientContext | ( | ContextDictionary | clientContext | ) |
Sets the client context.
clientContext | Client context. |
Implements Csla.Core.IContextManager.
Definition at line 91 of file Csla.Web.Shared/ApplicationContextManager.cs.
void Csla.Web.ApplicationContextManager.SetDefaultServiceProvider | ( | IServiceProvider | serviceProvider | ) |
Sets the default IServiceProvider
serviceProvider | IServiceProvider instance |
Implements Csla.Core.IContextManager.
Definition at line 125 of file Csla.Web.Shared/ApplicationContextManager.cs.
void Csla.Web.ApplicationContextManager.SetGlobalContext | ( | ContextDictionary | globalContext | ) |
Sets the global context.
globalContext | Global context. |
Implements Csla.Core.IContextManager.
Definition at line 108 of file Csla.Web.Shared/ApplicationContextManager.cs.
void Csla.Web.ApplicationContextManager.SetLocalContext | ( | ContextDictionary | localContext | ) |
Sets the local context.
localContext | Local context. |
Implements Csla.Core.IContextManager.
Definition at line 74 of file Csla.Web.Shared/ApplicationContextManager.cs.
void Csla.Web.ApplicationContextManager.SetServiceProvider | ( | IServiceProvider | scope | ) |
Sets the service provider for current scope
scope | IServiceProvider instance |
Implements Csla.Core.IContextManager.
Definition at line 143 of file Csla.Web.Shared/ApplicationContextManager.cs.
void Csla.Web.ApplicationContextManager.SetUser | ( | System.Security.Principal.IPrincipal | principal | ) |
Sets the current principal.
principal | Principal object. |
Definition at line 57 of file Csla.Web.Shared/ApplicationContextManager.cs.
|
get |
Gets a value indicating whether this context manager is valid for use in the current environment.
Definition at line 34 of file Csla.Web.Shared/ApplicationContextManager.cs.