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.Test.AppContext.TestContextManager Class Reference
Inheritance diagram for Csla.Test.AppContext.TestContextManager:
Csla.Core.IContextManager

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...
 
ContextDictionary GetGlobalContext ()
 
void SetGlobalContext (ContextDictionary globalContext)
 
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...
 

Properties

bool IsValid [get]
 
bool IsStatefulContext [get]
 
ApplicationContext ApplicationContext [getset]
 
- 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

Definition at line 14 of file TestContextManager.cs.

Member Function Documentation

◆ GetClientContext()

ContextDictionary Csla.Test.AppContext.TestContextManager.GetClientContext ( ApplicationContext.ExecutionLocations  executionLocation)

Gets the client context.

Parameters
executionLocation

Implements Csla.Core.IContextManager.

Definition at line 61 of file TestContextManager.cs.

◆ GetDefaultServiceProvider()

IServiceProvider Csla.Test.AppContext.TestContextManager.GetDefaultServiceProvider ( )

Gets the default IServiceProvider

Definition at line 90 of file TestContextManager.cs.

◆ GetGlobalContext()

ContextDictionary Csla.Test.AppContext.TestContextManager.GetGlobalContext ( )

Definition at line 73 of file TestContextManager.cs.

◆ GetLocalContext()

ContextDictionary Csla.Test.AppContext.TestContextManager.GetLocalContext ( )

Gets the local context.

Implements Csla.Core.IContextManager.

Definition at line 49 of file TestContextManager.cs.

◆ GetServiceProvider()

IServiceProvider Csla.Test.AppContext.TestContextManager.GetServiceProvider ( )

Gets the service provider for current scope

Returns

Definition at line 108 of file TestContextManager.cs.

◆ GetUser()

IPrincipal Csla.Test.AppContext.TestContextManager.GetUser ( )

Gets the current principal.

Implements Csla.Core.IContextManager.

Definition at line 33 of file TestContextManager.cs.

◆ SetClientContext()

void Csla.Test.AppContext.TestContextManager.SetClientContext ( ContextDictionary  clientContext,
ApplicationContext.ExecutionLocations  executionLocation 
)

Sets the client context.

Parameters
clientContextClient context.
executionLocation

Implements Csla.Core.IContextManager.

Definition at line 68 of file TestContextManager.cs.

◆ SetDefaultServiceProvider()

void Csla.Test.AppContext.TestContextManager.SetDefaultServiceProvider ( IServiceProvider  serviceProvider)

Sets the default IServiceProvider

Parameters
serviceProviderIServiceProvider instance

Definition at line 99 of file TestContextManager.cs.

◆ SetGlobalContext()

void Csla.Test.AppContext.TestContextManager.SetGlobalContext ( ContextDictionary  globalContext)

Definition at line 80 of file TestContextManager.cs.

◆ SetLocalContext()

void Csla.Test.AppContext.TestContextManager.SetLocalContext ( ContextDictionary  localContext)

Sets the local context.

Parameters
localContextLocal context.

Implements Csla.Core.IContextManager.

Definition at line 56 of file TestContextManager.cs.

◆ SetServiceProvider()

void Csla.Test.AppContext.TestContextManager.SetServiceProvider ( IServiceProvider  scope)

Sets the service provider for current scope

Parameters
scopeIServiceProvider instance

Definition at line 117 of file TestContextManager.cs.

◆ SetUser()

void Csla.Test.AppContext.TestContextManager.SetUser ( IPrincipal  principal)

Sets the current principal.

Parameters
principalPrincipal object.

Implements Csla.Core.IContextManager.

Definition at line 44 of file TestContextManager.cs.

Property Documentation

◆ ApplicationContext

ApplicationContext Csla.Test.AppContext.TestContextManager.ApplicationContext
getset

Definition at line 31 of file TestContextManager.cs.

◆ IsStatefulContext

bool Csla.Test.AppContext.TestContextManager.IsStatefulContext
get

Definition at line 29 of file TestContextManager.cs.

◆ IsValid

bool Csla.Test.AppContext.TestContextManager.IsValid
get

Definition at line 24 of file TestContextManager.cs.