CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.Web.ApplicationContextManager Class Reference

Application context manager that uses HttpContext to store context values. More...

Inheritance diagram for Csla.Web.ApplicationContextManager:
Csla.Core.IContextManager

Public Member Functions

 ApplicationContextManager ()
 Creates an instance of the type.
System.Security.Principal.IPrincipal GetUser ()
 Gets the current principal.
void SetUser (System.Security.Principal.IPrincipal principal)
IContextDictionaryGetLocalContext ()
 Gets the local context.
void SetLocalContext (IContextDictionary? localContext)
 Sets the local context.
IContextDictionaryGetClientContext (ApplicationContext.ExecutionLocations executionLocation)
 Gets the client context.
void SetClientContext (IContextDictionary? clientContext, ApplicationContext.ExecutionLocations executionLocation)
 Sets the client context.
Public Member Functions inherited from Csla.Core.IContextManager
void SetUser (IPrincipal principal)
 Sets the current principal.

Properties

bool IsValid [get]
 Gets a value indicating whether this context manager is valid for use in the current environment.
bool IsStatefulContext [get]
 Gets a value indicating whether the current runtime is stateful (e.g. WPF, Blazor, etc.).
ApplicationContext? ApplicationContext [get, set]
 Gets or sets a reference to the current ApplicationContext.

Detailed Description

Application context manager that uses HttpContext to store context values.

Constructor & Destructor Documentation

◆ ApplicationContextManager()

Csla.Web.ApplicationContextManager.ApplicationContextManager ( )
inline

Creates an instance of the type.

Member Function Documentation

◆ GetClientContext()

IContextDictionary? Csla.Web.ApplicationContextManager.GetClientContext ( ApplicationContext.ExecutionLocations executionLocation)
inline

Gets the client context.

Parameters
executionLocation

Implements Csla.Core.IContextManager.

◆ GetLocalContext()

IContextDictionary? Csla.Web.ApplicationContextManager.GetLocalContext ( )
inline

Gets the local context.

Implements Csla.Core.IContextManager.

◆ GetUser()

System.Security.Principal.IPrincipal Csla.Web.ApplicationContextManager.GetUser ( )
inline

Gets the current principal.

Implements Csla.Core.IContextManager.

◆ SetClientContext()

void Csla.Web.ApplicationContextManager.SetClientContext ( IContextDictionary? clientContext,
ApplicationContext.ExecutionLocations executionLocation )
inline

Sets the client context.

Parameters
clientContextClient context.
executionLocation

Implements Csla.Core.IContextManager.

◆ SetLocalContext()

void Csla.Web.ApplicationContextManager.SetLocalContext ( IContextDictionary? localContext)
inline

Sets the local context.

Parameters
localContextLocal context.

Implements Csla.Core.IContextManager.

◆ SetUser()

void Csla.Web.ApplicationContextManager.SetUser ( System.Security.Principal.IPrincipal principal)
inline

Property Documentation

◆ ApplicationContext

ApplicationContext? Csla.Web.ApplicationContextManager.ApplicationContext
getset

Gets or sets a reference to the current ApplicationContext.

Implements Csla.Core.IContextManager.

◆ IsStatefulContext

bool Csla.Web.ApplicationContextManager.IsStatefulContext
get

Gets a value indicating whether the current runtime is stateful (e.g. WPF, Blazor, etc.).

Implements Csla.Core.IContextManager.

◆ IsValid

bool Csla.Web.ApplicationContextManager.IsValid
get

Gets a value indicating whether this context manager is valid for use in the current environment.

Implements Csla.Core.IContextManager.


The documentation for this class was generated from the following file: