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.DataPortalClient.DataPortalProxyFactory Class Reference

Default data portal proxy factory that creates the IDataPortalProxy instance to use for the DataPortal server call. More...

Inheritance diagram for Csla.DataPortalClient.DataPortalProxyFactory:
Csla.DataPortalClient.IDataPortalProxyFactory

Public Member Functions

IDataPortalProxy Create (Type objectType)
 Creates the DataPortalProxy to use for DataPortal call on the objectType. More...
 
void ResetProxyType ()
 Resets the data portal proxy type, so the next data portal call will reload the proxy type based on current configuration values. More...
 

Static Public Member Functions

static void AddDescriptor (Type objectType, DataPortalProxyDescriptor descriptor)
 Add a proxy descriptor for the specified root business type. More...
 
static void AddDescriptor (string typeName, DataPortalProxyDescriptor descriptor)
 Add a proxy descriptor for the specified root business type. More...
 
static void AddDescriptor (int resourceId, DataPortalProxyDescriptor descriptor)
 Add a proxy descriptor for the specified root business type. More...
 
static string GetTypeName (Type objectType)
 Returns a type name formatted to act as a key in the DataPortalTypeProxyDescriptors dictionary. More...
 
static string GetTypeKey (Type objectType)
 Returns the key used by the proxy factory to locate a DataPortalProxyDescriptor in the DataPortalProxyDescriptors dictionary More...
 

Properties

static Dictionary< string, DataPortalProxyDescriptorDataPortalTypeProxyDescriptors [get]
 Gets the list of proxy-type mapping descriptors used to create specific proxy objects for specific business classes. More...
 

Detailed Description

Default data portal proxy factory that creates the IDataPortalProxy instance to use for the DataPortal server call.

Definition at line 21 of file DataPortalProxyFactory.cs.

Member Function Documentation

◆ AddDescriptor() [1/3]

static void Csla.DataPortalClient.DataPortalProxyFactory.AddDescriptor ( int  resourceId,
DataPortalProxyDescriptor  descriptor 
)
static

Add a proxy descriptor for the specified root business type.

Parameters
resourceIdServer resource id
descriptorData Portal proxy descriptor

Definition at line 141 of file DataPortalProxyFactory.cs.

◆ AddDescriptor() [2/3]

static void Csla.DataPortalClient.DataPortalProxyFactory.AddDescriptor ( string  typeName,
DataPortalProxyDescriptor  descriptor 
)
static

Add a proxy descriptor for the specified root business type.

Parameters
typeNameType of the root business type
descriptorData Portal proxy descriptor

Definition at line 130 of file DataPortalProxyFactory.cs.

◆ AddDescriptor() [3/3]

static void Csla.DataPortalClient.DataPortalProxyFactory.AddDescriptor ( Type  objectType,
DataPortalProxyDescriptor  descriptor 
)
static

Add a proxy descriptor for the specified root business type.

Parameters
objectTypeRoot business type
descriptorData Portal proxy descriptor

Definition at line 119 of file DataPortalProxyFactory.cs.

◆ Create()

IDataPortalProxy Csla.DataPortalClient.DataPortalProxyFactory.Create ( Type  objectType)

Creates the DataPortalProxy to use for DataPortal call on the objectType.

Parameters
objectTypeRoot business object type
Returns

Implements Csla.DataPortalClient.IDataPortalProxyFactory.

Definition at line 30 of file DataPortalProxyFactory.cs.

◆ GetTypeKey()

static string Csla.DataPortalClient.DataPortalProxyFactory.GetTypeKey ( Type  objectType)
static

Returns the key used by the proxy factory to locate a DataPortalProxyDescriptor in the DataPortalProxyDescriptors dictionary

Parameters
objectTypeObject type

Definition at line 164 of file DataPortalProxyFactory.cs.

◆ GetTypeName()

static string Csla.DataPortalClient.DataPortalProxyFactory.GetTypeName ( Type  objectType)
static

Returns a type name formatted to act as a key in the DataPortalTypeProxyDescriptors dictionary.

Parameters
objectTypeObject type

Definition at line 152 of file DataPortalProxyFactory.cs.

◆ ResetProxyType()

void Csla.DataPortalClient.DataPortalProxyFactory.ResetProxyType ( )

Resets the data portal proxy type, so the next data portal call will reload the proxy type based on current configuration values.

Implements Csla.DataPortalClient.IDataPortalProxyFactory.

Definition at line 85 of file DataPortalProxyFactory.cs.

Property Documentation

◆ DataPortalTypeProxyDescriptors

Dictionary<string, DataPortalProxyDescriptor> Csla.DataPortalClient.DataPortalProxyFactory.DataPortalTypeProxyDescriptors
staticget

Gets the list of proxy-type mapping descriptors used to create specific proxy objects for specific business classes.

If a business type is not listed in this mapping then the default proxy and URL values from ApplicationContext are used to create a proxy.

The key value is the first two elements of an assembly qualified type name (e.g. 'System.String, mscorlib').

Or the key value can be a resource id used to describe a business class via the DataPortalServerResource attribute. (e.g. 'Resource: 123').

Definition at line 105 of file DataPortalProxyFactory.cs.