Application context manager that uses HttpContext to store context values. More...
Public Member Functions | |
| ApplicationContextManager () | |
| Creates an instance of the type. More... | |
| 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 (ApplicationContext.ExecutionLocations executionLocation) |
| Gets the client context. More... | |
| void | SetClientContext (ContextDictionary clientContext, ApplicationContext.ExecutionLocations executionLocation) |
| Sets the client context. 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... | |
| bool | IsStatefulContext [get] |
| Gets a value indicating whether the current runtime is stateful (e.g. 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... | |
Application context manager that uses HttpContext to store context values.
Definition at line 17 of file Csla.Web/ApplicationContextManager.cs.
| Csla.Web.ApplicationContextManager.ApplicationContextManager | ( | ) |
Creates an instance of the type.
Definition at line 22 of file Csla.Web/ApplicationContextManager.cs.
| ContextDictionary Csla.Web.ApplicationContextManager.GetClientContext | ( | ApplicationContext.ExecutionLocations | executionLocation | ) |
Gets the client context.
| executionLocation |
Implements Csla.Core.IContextManager.
Definition at line 88 of file Csla.Web/ApplicationContextManager.cs.
| ContextDictionary Csla.Web.ApplicationContextManager.GetLocalContext | ( | ) |
Gets the local context.
Implements Csla.Core.IContextManager.
Definition at line 70 of file Csla.Web/ApplicationContextManager.cs.
| System.Security.Principal.IPrincipal Csla.Web.ApplicationContextManager.GetUser | ( | ) |
Gets the current principal.
Implements Csla.Core.IContextManager.
Definition at line 47 of file Csla.Web/ApplicationContextManager.cs.
| void Csla.Web.ApplicationContextManager.SetClientContext | ( | ContextDictionary | clientContext, |
| ApplicationContext.ExecutionLocations | executionLocation | ||
| ) |
Sets the client context.
| clientContext | Client context. |
| executionLocation |
Implements Csla.Core.IContextManager.
Definition at line 98 of file Csla.Web/ApplicationContextManager.cs.
| void Csla.Web.ApplicationContextManager.SetLocalContext | ( | ContextDictionary | localContext | ) |
Sets the local context.
| localContext | Local context. |
Implements Csla.Core.IContextManager.
Definition at line 79 of file Csla.Web/ApplicationContextManager.cs.
| void Csla.Web.ApplicationContextManager.SetUser | ( | System.Security.Principal.IPrincipal | principal | ) |
Sets the current principal.
| principal | Principal object. |
Definition at line 62 of file Csla.Web/ApplicationContextManager.cs.
|
getset |
Gets or sets a reference to the current ApplicationContext.
Definition at line 108 of file Csla.Web/ApplicationContextManager.cs.
|
get |
Gets a value indicating whether the current runtime is stateful (e.g.
WPF, Blazor, etc.)
Definition at line 42 of file Csla.Web/ApplicationContextManager.cs.
|
get |
Gets a value indicating whether this context manager is valid for use in the current environment.
Definition at line 33 of file Csla.Web/ApplicationContextManager.cs.