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.
IContextManager.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="IContextManager.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Defines the interface for an application </summary>
7//-----------------------------------------------------------------------
8using System;
9using System.Security.Principal;
10
11namespace Csla.Core
12{
17 public interface IContextManager
18 {
24 bool IsStatefulContext { get; }
25
31 bool IsValid { get; }
35 IPrincipal GetUser();
40 void SetUser(IPrincipal principal);
65 }
66}
Provides consistent context information between the client and server DataPortal objects.
ExecutionLocations
Enum representing the locations code can execute.
Dictionary type that is serializable with the SerializationFormatterFactory.GetFormatter().
Defines the interface for an application context manager type.
bool IsValid
Gets a value indicating whether this context manager is valid for use in the current environment.
IPrincipal GetUser()
Gets the current principal.
bool IsStatefulContext
Gets a value indicating whether this context manager is used in a stateful context (e....
void SetClientContext(ContextDictionary clientContext, ApplicationContext.ExecutionLocations executionLocation)
Sets the client context.
void SetUser(IPrincipal principal)
Sets the current principal.
void SetLocalContext(ContextDictionary localContext)
Sets the local context.
ContextDictionary GetClientContext(ApplicationContext.ExecutionLocations executionLocation)
Gets the client context.
ContextDictionary GetLocalContext()
Gets the local context.