9using System.Security.Principal;
10using System.Collections.Specialized;
22 private IPrincipal _principal;
23 private bool _remotePortal;
24 private string _clientCulture;
25 private string _clientUICulture;
38 get {
return _principal; }
48 get {
return _remotePortal; }
57 get {
return _clientCulture; }
66 get {
return _clientUICulture; }
70 get {
return _clientContext; }
80 get {
return _transactionalType; }
81 internal set { _transactionalType = value; }
92 get {
return _factoryInfo; }
93 internal set { _factoryInfo = value; }
108 _principal = principal;
109 _remotePortal = isRemotePortal;
110 _clientCulture = System.Threading.Thread.CurrentThread.CurrentCulture.Name;
111 _clientUICulture = System.Threading.Thread.CurrentThread.CurrentUICulture.Name;
127 _principal = principal;
128 _clientContext = clientContext;
129 _clientCulture = clientCulture;
130 _clientUICulture = clientUICulture;
131 _remotePortal = isRemotePortal;
144 info.AddValue(
"clientCulture", _clientCulture);
145 info.AddValue(
"clientUICulture", _clientUICulture);
146 info.AddValue(
"isRemotePortal", _remotePortal);
157 _clientCulture = info.GetValue<
string>(
"clientCulture");
158 _clientUICulture = info.GetValue<
string>(
"clientUICulture");
159 _remotePortal = info.GetValue<
bool>(
"isRemotePortal");
Provides consistent context information between the client and server DataPortal objects.
ExecutionLocations ExecutionLocation
Returns a value indicating whether the application code is currently executing on the client or serve...
IContextManager ContextManager
Gets the context manager responsible for storing user and context information for the application.
Dictionary type that is serializable with the SerializationFormatterFactory.GetFormatter().
Provides consistent context information between the client and server DataPortal objects.
string ClientCulture
The culture setting on the client workstation.
bool IsRemotePortal
Returns true if the server-side DataPortal is running on a remote server via remoting.
DataPortalContext(ApplicationContext applicationContext, IPrincipal principal, bool isRemotePortal)
Creates a new DataPortalContext object.
string ClientUICulture
The culture setting on the client workstation.
IPrincipal Principal
The current principal object if CSLA security is being used.
ObjectFactoryAttribute FactoryInfo
Gets the current ObjectFactory attribute value (if any).
DataPortalContext()
Default constructor for use by SerializationFormatterFactory.GetFormatter().
DataPortalContext(ApplicationContext applicationContext, IPrincipal principal, bool isRemotePortal, string clientCulture, string clientUICulture, ContextDictionary clientContext)
Creates a new DataPortalContext object.
TransactionalTypes TransactionalType
Gets the current transactional type.
Specifies that the data portal should invoke a factory object rather than the business object.
ContextDictionary GetClientContext(ApplicationContext.ExecutionLocations executionLocation)
Gets the client context.
Implement if a class requires access to the CSLA ApplicationContext type.
ApplicationContext ApplicationContext
Gets or sets the current ApplicationContext object.
@ Serialization
The object is being serialized for a clone or data portal operation.
TransactionalTypes
Provides a list of possible transactional technologies to be used by the server-side DataPortal.
@ Serializable
Prevents updating or inserting until the transaction is complete.