Default data portal proxy factory that creates the IDataPortalProxy instance to use for the DataPortal server call. More...
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, DataPortalProxyDescriptor > | DataPortalTypeProxyDescriptors [get] |
Gets the list of proxy-type mapping descriptors used to create specific proxy objects for specific business classes. More... | |
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.
|
static |
Add a proxy descriptor for the specified root business type.
Definition at line 141 of file DataPortalProxyFactory.cs.
|
static |
Add a proxy descriptor for the specified root business type.
typeName | Type of the root business type |
descriptor | Data Portal proxy descriptor |
Definition at line 130 of file DataPortalProxyFactory.cs.
|
static |
Add a proxy descriptor for the specified root business type.
objectType | Root business type |
descriptor | Data Portal proxy descriptor |
Definition at line 119 of file DataPortalProxyFactory.cs.
IDataPortalProxy Csla.DataPortalClient.DataPortalProxyFactory.Create | ( | Type | objectType | ) |
Creates the DataPortalProxy to use for DataPortal call on the objectType.
objectType | Root business object type |
Implements Csla.DataPortalClient.IDataPortalProxyFactory.
Definition at line 30 of file DataPortalProxyFactory.cs.
|
static |
Returns the key used by the proxy factory to locate a DataPortalProxyDescriptor in the DataPortalProxyDescriptors dictionary
objectType | Object type |
Definition at line 164 of file DataPortalProxyFactory.cs.
|
static |
Returns a type name formatted to act as a key in the DataPortalTypeProxyDescriptors dictionary.
objectType | Object type |
Definition at line 152 of file DataPortalProxyFactory.cs.
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.
|
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.