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 (ApplicationContext.ExecutionLocations executionLocation) |
Gets the client context. More... | |
void | SetClientContext (ContextDictionary clientContext, ApplicationContext.ExecutionLocations executionLocation) |
Sets the client context. More... | |
Properties | |
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... | |
Defines the interface for an application context manager type.
Definition at line 17 of file IContextManager.cs.
ContextDictionary Csla.Core.IContextManager.GetClientContext | ( | ApplicationContext.ExecutionLocations | executionLocation | ) |
Gets the client context.
executionLocation |
Implemented in Csla.AspNetCore.ApplicationContextManagerHttpContext, Csla.Blazor.WebAssembly.ApplicationContextManager, Csla.Test.AppContext.TestContextManager, Csla.Web.ApplicationContextManager, Csla.Core.ApplicationContextManager, Csla.Core.ApplicationContextManagerAsyncLocal, Csla.Core.ApplicationContextManagerStatic, and Csla.Core.ApplicationContextManagerTls.
ContextDictionary Csla.Core.IContextManager.GetLocalContext | ( | ) |
Gets the local context.
Implemented in Csla.AspNetCore.ApplicationContextManagerHttpContext, Csla.Blazor.WebAssembly.ApplicationContextManager, Csla.Test.AppContext.TestContextManager, Csla.Web.ApplicationContextManager, Csla.Core.ApplicationContextManager, Csla.Core.ApplicationContextManagerAsyncLocal, Csla.Core.ApplicationContextManagerStatic, and Csla.Core.ApplicationContextManagerTls.
IPrincipal Csla.Core.IContextManager.GetUser | ( | ) |
Gets the current principal.
Implemented in Csla.AspNetCore.ApplicationContextManagerHttpContext, Csla.Blazor.WebAssembly.ApplicationContextManager, Csla.Test.AppContext.TestContextManager, Csla.Web.ApplicationContextManager, Csla.Windows.ApplicationContextManager, Csla.Xaml.ApplicationContextManager, Csla.Core.ApplicationContextManager, Csla.Core.ApplicationContextManagerAsyncLocal, Csla.Core.ApplicationContextManagerStatic, and Csla.Core.ApplicationContextManagerTls.
void Csla.Core.IContextManager.SetClientContext | ( | ContextDictionary | clientContext, |
ApplicationContext.ExecutionLocations | executionLocation | ||
) |
Sets the client context.
clientContext | Client context. |
executionLocation |
Implemented in Csla.AspNetCore.ApplicationContextManagerHttpContext, Csla.Blazor.WebAssembly.ApplicationContextManager, Csla.Test.AppContext.TestContextManager, Csla.Web.ApplicationContextManager, Csla.Core.ApplicationContextManager, Csla.Core.ApplicationContextManagerAsyncLocal, 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.ApplicationContextManagerHttpContext, Csla.Blazor.WebAssembly.ApplicationContextManager, Csla.Test.AppContext.TestContextManager, Csla.Web.ApplicationContextManager, Csla.Core.ApplicationContextManager, Csla.Core.ApplicationContextManagerAsyncLocal, Csla.Core.ApplicationContextManagerStatic, and Csla.Core.ApplicationContextManagerTls.
void Csla.Core.IContextManager.SetUser | ( | IPrincipal | principal | ) |
Sets the current principal.
principal | Principal object. |
Implemented in Csla.Blazor.WebAssembly.ApplicationContextManager, Csla.Test.AppContext.TestContextManager, Csla.Windows.ApplicationContextManager, Csla.Xaml.ApplicationContextManager, Csla.Core.ApplicationContextManager, Csla.Core.ApplicationContextManagerAsyncLocal, Csla.Core.ApplicationContextManagerStatic, and Csla.Core.ApplicationContextManagerTls.
|
getset |
Gets or sets a reference to the current ApplicationContext.
Definition at line 64 of file IContextManager.cs.
|
get |
Gets a value indicating whether this
context manager is used in a stateful context (e.g.
WPF, Blazor, etc.)
Definition at line 24 of file IContextManager.cs.
|
get |
Gets a value indicating whether this context manager is valid for use in the current environment.
Definition at line 31 of file IContextManager.cs.