CSLA.NET 5.4.2
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

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

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...
 

Detailed Description

Application context manager that uses HttpContext to store context values.

Definition at line 21 of file Csla.Web.Shared/ApplicationContextManager.cs.

Member Function Documentation

◆ GetClientContext()

ContextDictionary Csla.Web.ApplicationContextManager.GetClientContext ( )

Gets the client context.

Implements Csla.Core.IContextManager.

Definition at line 82 of file Csla.Web.Shared/ApplicationContextManager.cs.

◆ GetDefaultServiceProvider()

IServiceProvider Csla.Web.ApplicationContextManager.GetDefaultServiceProvider ( )

Gets the default IServiceProvider

Implements Csla.Core.IContextManager.

Definition at line 116 of file Csla.Web.Shared/ApplicationContextManager.cs.

◆ GetGlobalContext()

ContextDictionary Csla.Web.ApplicationContextManager.GetGlobalContext ( )

Gets the global context.

Implements Csla.Core.IContextManager.

Definition at line 99 of file Csla.Web.Shared/ApplicationContextManager.cs.

◆ GetLocalContext()

ContextDictionary Csla.Web.ApplicationContextManager.GetLocalContext ( )

Gets the local context.

Implements Csla.Core.IContextManager.

Definition at line 65 of file Csla.Web.Shared/ApplicationContextManager.cs.

◆ GetServiceProvider()

IServiceProvider Csla.Web.ApplicationContextManager.GetServiceProvider ( )

Gets the service provider for current scope

Returns

Implements Csla.Core.IContextManager.

Definition at line 134 of file Csla.Web.Shared/ApplicationContextManager.cs.

◆ GetUser()

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

Gets the current principal.

Implements Csla.Core.IContextManager.

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

◆ SetClientContext()

void Csla.Web.ApplicationContextManager.SetClientContext ( ContextDictionary  clientContext)

Sets the client context.

Parameters
clientContextClient context.

Implements Csla.Core.IContextManager.

Definition at line 91 of file Csla.Web.Shared/ApplicationContextManager.cs.

◆ SetDefaultServiceProvider()

void Csla.Web.ApplicationContextManager.SetDefaultServiceProvider ( IServiceProvider  serviceProvider)

Sets the default IServiceProvider

Parameters
serviceProviderIServiceProvider instance

Implements Csla.Core.IContextManager.

Definition at line 125 of file Csla.Web.Shared/ApplicationContextManager.cs.

◆ SetGlobalContext()

void Csla.Web.ApplicationContextManager.SetGlobalContext ( ContextDictionary  globalContext)

Sets the global context.

Parameters
globalContextGlobal context.

Implements Csla.Core.IContextManager.

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

◆ SetLocalContext()

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

Sets the local context.

Parameters
localContextLocal context.

Implements Csla.Core.IContextManager.

Definition at line 74 of file Csla.Web.Shared/ApplicationContextManager.cs.

◆ SetServiceProvider()

void Csla.Web.ApplicationContextManager.SetServiceProvider ( IServiceProvider  scope)

Sets the service provider for current scope

Parameters
scopeIServiceProvider instance

Implements Csla.Core.IContextManager.

Definition at line 143 of file Csla.Web.Shared/ApplicationContextManager.cs.

◆ SetUser()

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

Sets the current principal.

Parameters
principalPrincipal object.

Definition at line 57 of file Csla.Web.Shared/ApplicationContextManager.cs.

Property Documentation

◆ 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 34 of file Csla.Web.Shared/ApplicationContextManager.cs.