CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.Server.DataPortalContext Class Reference

Provides consistent context information between the client and server DataPortal objects. More...

Inheritance diagram for Csla.Server.DataPortalContext:
Csla.Serialization.Mobile.IMobileObject Csla.Core.IUseApplicationContext

Public Member Functions

 DataPortalContext (ApplicationContext applicationContext, bool isRemotePortal)
 Creates a new DataPortalContext object.
 DataPortalContext (ApplicationContext applicationContext, IPrincipal? principal, bool isRemotePortal, string clientCulture, string clientUICulture, IContextDictionary clientContext)
 Creates a new DataPortalContext object.
 DataPortalContext ()
 Default constructor for use by SerializationFormatterFactory.GetFormatter().

Properties

IPrincipal? Principal [get]
 The current principal object if CSLA security is being used.
bool IsRemotePortal [get]
 Returns true if the server-side DataPortal is running on a remote server via remoting.
string ClientCulture [get]
 The culture setting on the client workstation.
string ClientUICulture [get]
 The culture setting on the client workstation.
TransactionalTypes TransactionalType [get, set]
 Gets the current transactional type. Only valid in the server-side data portal methods after the transactional type has been determined.
ObjectFactoryAttributeFactoryInfo [get, set]
 Gets the current ObjectFactory attribute value (if any). Only valid in the server-side data portal methods after the attribute value has been determined.

Detailed Description

Provides consistent context information between the client and server DataPortal objects.

Constructor & Destructor Documentation

◆ DataPortalContext() [1/3]

Csla.Server.DataPortalContext.DataPortalContext ( ApplicationContext applicationContext,
bool isRemotePortal )
inline

Creates a new DataPortalContext object.

Parameters
applicationContextApplicationContext instance.
isRemotePortalIndicates whether the DataPortal is remote.
Exceptions
ArgumentNullExceptionapplicationContext is null.

◆ DataPortalContext() [2/3]

Csla.Server.DataPortalContext.DataPortalContext ( ApplicationContext applicationContext,
IPrincipal? principal,
bool isRemotePortal,
string clientCulture,
string clientUICulture,
IContextDictionary clientContext )
inline

Creates a new DataPortalContext object.

Parameters
applicationContextApplicationContext instance.
principalThe current Principal object.
isRemotePortalIndicates whether the DataPortal is remote.
clientContextClient context.
clientCultureClient culture.
clientUICultureClient UI culture.
Exceptions
ArgumentNullExceptionapplicationContext , clientCulture , clientUICulture or clientContext is null.

◆ DataPortalContext() [3/3]

Csla.Server.DataPortalContext.DataPortalContext ( )
inline

Default constructor for use by SerializationFormatterFactory.GetFormatter().

Property Documentation

◆ ClientCulture

string Csla.Server.DataPortalContext.ClientCulture
get

The culture setting on the client workstation.

◆ ClientUICulture

string Csla.Server.DataPortalContext.ClientUICulture
get

The culture setting on the client workstation.

◆ FactoryInfo

ObjectFactoryAttribute? Csla.Server.DataPortalContext.FactoryInfo
getset

Gets the current ObjectFactory attribute value (if any). Only valid in the server-side data portal methods after the attribute value has been determined.

◆ IsRemotePortal

bool Csla.Server.DataPortalContext.IsRemotePortal
get

Returns true if the server-side DataPortal is running on a remote server via remoting.

◆ Principal

IPrincipal? Csla.Server.DataPortalContext.Principal
get

The current principal object if CSLA security is being used.

◆ TransactionalType

TransactionalTypes Csla.Server.DataPortalContext.TransactionalType
getset

Gets the current transactional type. Only valid in the server-side data portal methods after the transactional type has been determined.


The documentation for this class was generated from the following file: