Application context manager that uses HttpContextAccessor when resolving HttpContext to store context values. More...
Public Member Functions | |
ApplicationContextManagerHttpContext (IHttpContextAccessor httpContextAccessor, IRuntimeInfo runtimeInfo) | |
Creates an instance of the object, initializing it with the required IServiceProvider. 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 | |
virtual HttpContext | HttpContext [get] |
Gets the current HttpContext instance. More... | |
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 context manager is stateful. More... | |
virtual 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 HttpContextAccessor when resolving HttpContext to store context values.
Definition at line 20 of file ApplicationContextManagerHttpContext.cs.
Csla.AspNetCore.ApplicationContextManagerHttpContext.ApplicationContextManagerHttpContext | ( | IHttpContextAccessor | httpContextAccessor, |
IRuntimeInfo | runtimeInfo | ||
) |
Creates an instance of the object, initializing it with the required IServiceProvider.
httpContextAccessor | HttpContext accessor |
runtimeInfo |
Definition at line 55 of file ApplicationContextManagerHttpContext.cs.
ContextDictionary Csla.AspNetCore.ApplicationContextManagerHttpContext.GetClientContext | ( | ApplicationContext.ExecutionLocations | executionLocation | ) |
Gets the client context.
executionLocation |
Implements Csla.Core.IContextManager.
Definition at line 143 of file ApplicationContextManagerHttpContext.cs.
ContextDictionary Csla.AspNetCore.ApplicationContextManagerHttpContext.GetLocalContext | ( | ) |
Gets the local context.
Implements Csla.Core.IContextManager.
Definition at line 125 of file ApplicationContextManagerHttpContext.cs.
System.Security.Principal.IPrincipal Csla.AspNetCore.ApplicationContextManagerHttpContext.GetUser | ( | ) |
Gets the current principal.
Implements Csla.Core.IContextManager.
Definition at line 102 of file ApplicationContextManagerHttpContext.cs.
void Csla.AspNetCore.ApplicationContextManagerHttpContext.SetClientContext | ( | ContextDictionary | clientContext, |
ApplicationContext.ExecutionLocations | executionLocation | ||
) |
Sets the client context.
clientContext | Client context. |
executionLocation |
Implements Csla.Core.IContextManager.
Definition at line 153 of file ApplicationContextManagerHttpContext.cs.
void Csla.AspNetCore.ApplicationContextManagerHttpContext.SetLocalContext | ( | ContextDictionary | localContext | ) |
Sets the local context.
localContext | Local context. |
Implements Csla.Core.IContextManager.
Definition at line 134 of file ApplicationContextManagerHttpContext.cs.
void Csla.AspNetCore.ApplicationContextManagerHttpContext.SetUser | ( | System.Security.Principal.IPrincipal | principal | ) |
Sets the current principal.
principal | Principal object. |
Definition at line 117 of file ApplicationContextManagerHttpContext.cs.
|
getset |
Gets or sets a reference to the current ApplicationContext.
Definition at line 163 of file ApplicationContextManagerHttpContext.cs.
|
getprotected |
Gets the current HttpContext instance.
Definition at line 67 of file ApplicationContextManagerHttpContext.cs.
|
get |
Gets a value indicating whether the context manager is stateful.
Definition at line 97 of file ApplicationContextManagerHttpContext.cs.
|
get |
Gets a value indicating whether this context manager is valid for use in the current environment.
Definition at line 74 of file ApplicationContextManagerHttpContext.cs.