CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
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. 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

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 current runtime is stateful (e.g. More...
 
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...
 

Detailed Description

Application context manager that uses HttpContext to store context values.

Definition at line 17 of file Csla.Web/ApplicationContextManager.cs.

Constructor & Destructor Documentation

◆ ApplicationContextManager()

Csla.Web.ApplicationContextManager.ApplicationContextManager ( )

Creates an instance of the type.

Definition at line 22 of file Csla.Web/ApplicationContextManager.cs.

Member Function Documentation

◆ GetClientContext()

ContextDictionary Csla.Web.ApplicationContextManager.GetClientContext ( ApplicationContext.ExecutionLocations  executionLocation)

Gets the client context.

Parameters
executionLocation

Implements Csla.Core.IContextManager.

Definition at line 88 of file Csla.Web/ApplicationContextManager.cs.

◆ GetLocalContext()

ContextDictionary Csla.Web.ApplicationContextManager.GetLocalContext ( )

Gets the local context.

Implements Csla.Core.IContextManager.

Definition at line 70 of file Csla.Web/ApplicationContextManager.cs.

◆ GetUser()

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

Gets the current principal.

Implements Csla.Core.IContextManager.

Definition at line 47 of file Csla.Web/ApplicationContextManager.cs.

◆ SetClientContext()

void Csla.Web.ApplicationContextManager.SetClientContext ( ContextDictionary  clientContext,
ApplicationContext.ExecutionLocations  executionLocation 
)

Sets the client context.

Parameters
clientContextClient context.
executionLocation

Implements Csla.Core.IContextManager.

Definition at line 98 of file Csla.Web/ApplicationContextManager.cs.

◆ SetLocalContext()

void Csla.Web.ApplicationContextManager.SetLocalContext ( ContextDictionary  localContext)

Sets the local context.

Parameters
localContextLocal context.

Implements Csla.Core.IContextManager.

Definition at line 79 of file Csla.Web/ApplicationContextManager.cs.

◆ SetUser()

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

Sets the current principal.

Parameters
principalPrincipal object.

Definition at line 62 of file Csla.Web/ApplicationContextManager.cs.

Property Documentation

◆ ApplicationContext

ApplicationContext Csla.Web.ApplicationContextManager.ApplicationContext
getset

Gets or sets a reference to the current ApplicationContext.

Definition at line 108 of file Csla.Web/ApplicationContextManager.cs.

◆ IsStatefulContext

bool Csla.Web.ApplicationContextManager.IsStatefulContext
get

Gets a value indicating whether the current runtime is stateful (e.g.

WPF, Blazor, etc.)

Definition at line 42 of file Csla.Web/ApplicationContextManager.cs.

◆ IsValid

bool Csla.Web.ApplicationContextManager.IsValid
get

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

Definition at line 33 of file Csla.Web/ApplicationContextManager.cs.