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

Public Member Functions

 DataPortalContext (IPrincipal principal, bool isRemotePortal)
 Creates a new DataPortalContext object. More...
 
 DataPortalContext (IPrincipal principal, bool isRemotePortal, string clientCulture, string clientUICulture, ContextDictionary clientContext, ContextDictionary globalContext)
 Creates a new DataPortalContext object. More...
 
 DataPortalContext ()
 Default constructor for use by SerializationFormatterFactory.GetFormatter(). More...
 
- Public Member Functions inherited from Csla.Serialization.Mobile.IMobileObject
void GetState (SerializationInfo info)
 Method called by MobileFormatter when an object should serialize its data. More...
 
void GetChildren (SerializationInfo info, MobileFormatter formatter)
 Method called by MobileFormatter when an object should serialize its child references. More...
 
void SetState (SerializationInfo info)
 Method called by MobileFormatter when an object should be deserialized. More...
 
void SetChildren (SerializationInfo info, MobileFormatter formatter)
 Method called by MobileFormatter when an object should deserialize its child references. More...
 

Properties

IPrincipal Principal [get]
 The current principal object if CSLA security is being used. More...
 
bool IsRemotePortal [get]
 Returns true if the server-side DataPortal is running on a remote server via remoting. More...
 
string ClientCulture [get]
 The culture setting on the client workstation. More...
 
string ClientUICulture [get]
 The culture setting on the client workstation. More...
 
TransactionalTypes TransactionalType [getset]
 Gets the current transactional type. More...
 
ObjectFactoryAttribute FactoryInfo [getset]
 Gets the current ObjectFactory attribute value (if any). More...
 

Detailed Description

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

Definition at line 20 of file DataPortalContext.cs.

Constructor & Destructor Documentation

◆ DataPortalContext() [1/3]

Csla.Server.DataPortalContext.DataPortalContext ( IPrincipal  principal,
bool  isRemotePortal 
)

Creates a new DataPortalContext object.

Parameters
principalThe current Principal object.
isRemotePortalIndicates whether the DataPortal is remote.

Definition at line 107 of file DataPortalContext.cs.

◆ DataPortalContext() [2/3]

Csla.Server.DataPortalContext.DataPortalContext ( IPrincipal  principal,
bool  isRemotePortal,
string  clientCulture,
string  clientUICulture,
ContextDictionary  clientContext,
ContextDictionary  globalContext 
)

Creates a new DataPortalContext object.

Parameters
principalThe current Principal object.
isRemotePortalIndicates whether the DataPortal is remote.
clientContextClient context.
clientCultureClient culture.
clientUICultureClient UI culture.
globalContextGlobal context.

Definition at line 141 of file DataPortalContext.cs.

◆ DataPortalContext() [3/3]

Csla.Server.DataPortalContext.DataPortalContext ( )

Default constructor for use by SerializationFormatterFactory.GetFormatter().

Definition at line 154 of file DataPortalContext.cs.

Property Documentation

◆ ClientCulture

string Csla.Server.DataPortalContext.ClientCulture
get

The culture setting on the client workstation.

Definition at line 56 of file DataPortalContext.cs.

◆ ClientUICulture

string Csla.Server.DataPortalContext.ClientUICulture
get

The culture setting on the client workstation.

Definition at line 65 of file DataPortalContext.cs.

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

Definition at line 96 of file DataPortalContext.cs.

◆ IsRemotePortal

bool Csla.Server.DataPortalContext.IsRemotePortal
get

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

Definition at line 47 of file DataPortalContext.cs.

◆ Principal

IPrincipal Csla.Server.DataPortalContext.Principal
get

The current principal object if CSLA security is being used.

Definition at line 37 of file DataPortalContext.cs.

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

Definition at line 84 of file DataPortalContext.cs.