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.Core.IContextManager Interface Reference

Defines the interface for an application context manager type. More...

Inheritance diagram for Csla.Core.IContextManager:
Csla.AspNetCore.ApplicationContextManager Csla.Core.ApplicationContextManager Csla.Core.ApplicationContextManagerStatic Csla.Core.ApplicationContextManagerTls Csla.Web.ApplicationContextManager Csla.Windows.ApplicationContextManager Csla.Xaml.ApplicationContextManager

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 ()
 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 scope for current scope. More...
 
void SetServiceProvider (IServiceProvider scope)
 Sets the service provider for current scope. More...
 

Properties

bool IsValid [get]
 Gets a value indicating whether this context manager is valid for use in the current environment. More...
 

Detailed Description

Defines the interface for an application context manager type.

Definition at line 17 of file IContextManager.cs.

Member Function Documentation

◆ GetClientContext()

◆ GetDefaultServiceProvider()

IServiceProvider Csla.Core.IContextManager.GetDefaultServiceProvider ( )

◆ GetGlobalContext()

◆ GetLocalContext()

◆ GetServiceProvider()

IServiceProvider Csla.Core.IContextManager.GetServiceProvider ( )

◆ GetUser()

◆ SetClientContext()

void Csla.Core.IContextManager.SetClientContext ( ContextDictionary  clientContext)

◆ SetDefaultServiceProvider()

void Csla.Core.IContextManager.SetDefaultServiceProvider ( IServiceProvider  serviceProvider)

◆ SetGlobalContext()

void Csla.Core.IContextManager.SetGlobalContext ( ContextDictionary  globalContext)

◆ SetLocalContext()

void Csla.Core.IContextManager.SetLocalContext ( ContextDictionary  localContext)

◆ SetServiceProvider()

void Csla.Core.IContextManager.SetServiceProvider ( IServiceProvider  scope)

◆ SetUser()

void Csla.Core.IContextManager.SetUser ( IPrincipal  principal)

Property Documentation

◆ IsValid

bool Csla.Core.IContextManager.IsValid
get

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

Definition at line 24 of file IContextManager.cs.