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.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, IPrincipal principal, bool isRemotePortal)
 Creates a new DataPortalContext object. More...
 
 DataPortalContext (ApplicationContext applicationContext, IPrincipal principal, bool isRemotePortal, string clientCulture, string clientUICulture, ContextDictionary clientContext)
 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...
 
- Properties inherited from Csla.Core.IUseApplicationContext
ApplicationContext ApplicationContext [getset]
 Gets or sets the current ApplicationContext object. 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 ( ApplicationContext  applicationContext,
IPrincipal  principal,
bool  isRemotePortal 
)

Creates a new DataPortalContext object.

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

Definition at line 105 of file DataPortalContext.cs.

◆ DataPortalContext() [2/3]

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

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.

Definition at line 124 of file DataPortalContext.cs.

◆ DataPortalContext() [3/3]

Csla.Server.DataPortalContext.DataPortalContext ( )

Default constructor for use by SerializationFormatterFactory.GetFormatter().

Definition at line 137 of file DataPortalContext.cs.

Property Documentation

◆ ClientCulture

string Csla.Server.DataPortalContext.ClientCulture
get

The culture setting on the client workstation.

Definition at line 55 of file DataPortalContext.cs.

◆ ClientUICulture

string Csla.Server.DataPortalContext.ClientUICulture
get

The culture setting on the client workstation.

Definition at line 64 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 90 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 46 of file DataPortalContext.cs.

◆ Principal

IPrincipal Csla.Server.DataPortalContext.Principal
get

The current principal object if CSLA security is being used.

Definition at line 36 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 78 of file DataPortalContext.cs.