Defines the interface for an application context manager type. More...
Public Member Functions | |
IPrincipal | GetUser () |
Gets the current principal. More... | |
void | SetUser (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 scope for current scope. More... | |
void | SetServiceProvider (IServiceProvider scope) |
Sets the service provider for current scope. More... | |
Properties | |
bool | IsValid [get] |
Gets a value indicating whether this context manager is valid for use in the current environment. More... | |
Defines the interface for an application context manager type.
Definition at line 17 of file IContextManager.cs.
ContextDictionary Csla.Core.IContextManager.GetClientContext | ( | ) |
Gets the client context.
Implemented in Csla.AspNetCore.ApplicationContextManager, Csla.Web.ApplicationContextManager, Csla.Core.ApplicationContextManager, Csla.Core.ApplicationContextManagerStatic, and Csla.Core.ApplicationContextManagerTls.
IServiceProvider Csla.Core.IContextManager.GetDefaultServiceProvider | ( | ) |
Gets the default IServiceProvider
Implemented in Csla.AspNetCore.ApplicationContextManager, Csla.Web.ApplicationContextManager, Csla.Core.ApplicationContextManager, Csla.Core.ApplicationContextManagerStatic, and Csla.Core.ApplicationContextManagerTls.
ContextDictionary Csla.Core.IContextManager.GetGlobalContext | ( | ) |
Gets the global context.
Implemented in Csla.AspNetCore.ApplicationContextManager, Csla.Web.ApplicationContextManager, Csla.Core.ApplicationContextManager, Csla.Core.ApplicationContextManagerStatic, and Csla.Core.ApplicationContextManagerTls.
ContextDictionary Csla.Core.IContextManager.GetLocalContext | ( | ) |
Gets the local context.
Implemented in Csla.AspNetCore.ApplicationContextManager, Csla.Web.ApplicationContextManager, Csla.Core.ApplicationContextManager, Csla.Core.ApplicationContextManagerStatic, and Csla.Core.ApplicationContextManagerTls.
IServiceProvider Csla.Core.IContextManager.GetServiceProvider | ( | ) |
Gets the service provider scope for current scope.
Implemented in Csla.AspNetCore.ApplicationContextManager, Csla.Web.ApplicationContextManager, Csla.Core.ApplicationContextManager, Csla.Core.ApplicationContextManagerStatic, and Csla.Core.ApplicationContextManagerTls.
IPrincipal Csla.Core.IContextManager.GetUser | ( | ) |
Gets the current principal.
Implemented in Csla.AspNetCore.ApplicationContextManager, Csla.Web.ApplicationContextManager, Csla.Windows.ApplicationContextManager, Csla.Xaml.ApplicationContextManager, Csla.Core.ApplicationContextManager, Csla.Core.ApplicationContextManagerStatic, and Csla.Core.ApplicationContextManagerTls.
void Csla.Core.IContextManager.SetClientContext | ( | ContextDictionary | clientContext | ) |
Sets the client context.
clientContext | Client context. |
Implemented in Csla.AspNetCore.ApplicationContextManager, Csla.Web.ApplicationContextManager, Csla.Core.ApplicationContextManager, Csla.Core.ApplicationContextManagerStatic, and Csla.Core.ApplicationContextManagerTls.
void Csla.Core.IContextManager.SetDefaultServiceProvider | ( | IServiceProvider | serviceProvider | ) |
Sets the default IServiceProvider
serviceProvider | IServiceProvider instance |
Implemented in Csla.AspNetCore.ApplicationContextManager, Csla.Web.ApplicationContextManager, Csla.Core.ApplicationContextManager, Csla.Core.ApplicationContextManagerStatic, and Csla.Core.ApplicationContextManagerTls.
void Csla.Core.IContextManager.SetGlobalContext | ( | ContextDictionary | globalContext | ) |
Sets the global context.
globalContext | Global context. |
Implemented in Csla.AspNetCore.ApplicationContextManager, Csla.Web.ApplicationContextManager, Csla.Core.ApplicationContextManager, Csla.Core.ApplicationContextManagerStatic, and Csla.Core.ApplicationContextManagerTls.
void Csla.Core.IContextManager.SetLocalContext | ( | ContextDictionary | localContext | ) |
Sets the local context.
localContext | Local context. |
Implemented in Csla.AspNetCore.ApplicationContextManager, Csla.Web.ApplicationContextManager, Csla.Core.ApplicationContextManager, Csla.Core.ApplicationContextManagerStatic, and Csla.Core.ApplicationContextManagerTls.
void Csla.Core.IContextManager.SetServiceProvider | ( | IServiceProvider | scope | ) |
Sets the service provider for current scope.
scope | IServiceProvider instance |
Implemented in Csla.AspNetCore.ApplicationContextManager, Csla.Web.ApplicationContextManager, Csla.Core.ApplicationContextManager, Csla.Core.ApplicationContextManagerStatic, and Csla.Core.ApplicationContextManagerTls.
void Csla.Core.IContextManager.SetUser | ( | IPrincipal | principal | ) |
Sets the current principal.
principal | Principal object. |
Implemented in Csla.Windows.ApplicationContextManager, Csla.Xaml.ApplicationContextManager, Csla.Core.ApplicationContextManager, Csla.Core.ApplicationContextManagerStatic, and Csla.Core.ApplicationContextManagerTls.
|
get |
Gets a value indicating whether this context manager is valid for use in the current environment.
Definition at line 24 of file IContextManager.cs.