Application context manager that uses HttpContextAccessor when resolving HttpContext to store context values. More...
Public Member Functions | |
| ApplicationContextManager (IServiceProvider serviceProvider) | |
| 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 () |
| 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 | |
| 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... | |
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 HttpContextAccessor when resolving HttpContext to store context values.
Definition at line 21 of file Csla.AspNetCore.Shared/ApplicationContextManager.cs.
| Csla.AspNetCore.ApplicationContextManager.ApplicationContextManager | ( | IServiceProvider | serviceProvider | ) |
Creates an instance of the object, initializing it with the required IServiceProvider.
| serviceProvider | ASP.NET Core IServiceProvider |
Definition at line 35 of file Csla.AspNetCore.Shared/ApplicationContextManager.cs.
| ContextDictionary Csla.AspNetCore.ApplicationContextManager.GetClientContext | ( | ) |
Gets the client context.
Implements Csla.Core.IContextManager.
Definition at line 113 of file Csla.AspNetCore.Shared/ApplicationContextManager.cs.
| IServiceProvider Csla.AspNetCore.ApplicationContextManager.GetDefaultServiceProvider | ( | ) |
Gets the default IServiceProvider
Implements Csla.Core.IContextManager.
Definition at line 147 of file Csla.AspNetCore.Shared/ApplicationContextManager.cs.
| ContextDictionary Csla.AspNetCore.ApplicationContextManager.GetGlobalContext | ( | ) |
Gets the global context.
Implements Csla.Core.IContextManager.
Definition at line 130 of file Csla.AspNetCore.Shared/ApplicationContextManager.cs.
| ContextDictionary Csla.AspNetCore.ApplicationContextManager.GetLocalContext | ( | ) |
Gets the local context.
Implements Csla.Core.IContextManager.
Definition at line 96 of file Csla.AspNetCore.Shared/ApplicationContextManager.cs.
| IServiceProvider Csla.AspNetCore.ApplicationContextManager.GetServiceProvider | ( | ) |
Gets the service provider for current scope
Implements Csla.Core.IContextManager.
Definition at line 168 of file Csla.AspNetCore.Shared/ApplicationContextManager.cs.
| System.Security.Principal.IPrincipal Csla.AspNetCore.ApplicationContextManager.GetUser | ( | ) |
Gets the current principal.
Implements Csla.Core.IContextManager.
Definition at line 73 of file Csla.AspNetCore.Shared/ApplicationContextManager.cs.
| void Csla.AspNetCore.ApplicationContextManager.SetClientContext | ( | ContextDictionary | clientContext | ) |
Sets the client context.
| clientContext | Client context. |
Implements Csla.Core.IContextManager.
Definition at line 122 of file Csla.AspNetCore.Shared/ApplicationContextManager.cs.
| void Csla.AspNetCore.ApplicationContextManager.SetDefaultServiceProvider | ( | IServiceProvider | serviceProvider | ) |
Sets the default IServiceProvider
| serviceProvider | IServiceProvider instance |
Implements Csla.Core.IContextManager.
Definition at line 158 of file Csla.AspNetCore.Shared/ApplicationContextManager.cs.
| void Csla.AspNetCore.ApplicationContextManager.SetGlobalContext | ( | ContextDictionary | globalContext | ) |
Sets the global context.
| globalContext | Global context. |
Implements Csla.Core.IContextManager.
Definition at line 139 of file Csla.AspNetCore.Shared/ApplicationContextManager.cs.
| void Csla.AspNetCore.ApplicationContextManager.SetLocalContext | ( | ContextDictionary | localContext | ) |
Sets the local context.
| localContext | Local context. |
Implements Csla.Core.IContextManager.
Definition at line 105 of file Csla.AspNetCore.Shared/ApplicationContextManager.cs.
| void Csla.AspNetCore.ApplicationContextManager.SetServiceProvider | ( | IServiceProvider | scope | ) |
Sets the service provider for current scope
| scope | IServiceProvider instance |
Implements Csla.Core.IContextManager.
Definition at line 177 of file Csla.AspNetCore.Shared/ApplicationContextManager.cs.
| void Csla.AspNetCore.ApplicationContextManager.SetUser | ( | System.Security.Principal.IPrincipal | principal | ) |
Sets the current principal.
| principal | Principal object. |
Definition at line 88 of file Csla.AspNetCore.Shared/ApplicationContextManager.cs.
|
getprotected |
Gets the current HttpContext instance.
Definition at line 43 of file Csla.AspNetCore.Shared/ApplicationContextManager.cs.
|
get |
Gets a value indicating whether this context manager is valid for use in the current environment.
Definition at line 65 of file Csla.AspNetCore.Shared/ApplicationContextManager.cs.