Implements a data portal proxy to relay data portal calls to a remote application server. More...
Public Member Functions | |
DataPortalProxy (ApplicationContext applicationContext) | |
virtual async Task< DataPortalResult > | Create (Type objectType, object criteria, DataPortalContext context, bool isSync) |
Called by DataPortal to create a new business object. More... | |
virtual async Task< DataPortalResult > | Fetch (Type objectType, object criteria, DataPortalContext context, bool isSync) |
Called by DataPortal to load an existing business object. More... | |
virtual async Task< DataPortalResult > | Update (object obj, DataPortalContext context, bool isSync) |
Called by DataPortal to update a business object. More... | |
virtual async Task< DataPortalResult > | Delete (Type objectType, object criteria, DataPortalContext context, bool isSync) |
Called by DataPortal to delete a business object. More... | |
Protected Member Functions | |
virtual CriteriaRequest | ConvertRequest (CriteriaRequest request) |
Override this method to manipulate the message request data sent to the server. More... | |
virtual UpdateRequest | ConvertRequest (UpdateRequest request) |
Override this method to manipulate the message request data sent to the server. More... | |
virtual DataPortalResponse | ConvertResponse (DataPortalResponse response) |
Override this method to manipulate the message request data returned from the server. More... | |
abstract Task< byte[]> | CallDataPortalServer (byte[] serialized, string operation, string routingToken, bool isSync) |
Override this method with implementation of sending and receiving of data to the server Returns serialised response from server More... | |
Properties | |
ApplicationContext | ApplicationContext [getset] |
Gets or sets the current ApplicationContext object. More... | |
virtual bool | IsServerRemote [get] |
Gets a value indicating whether the data portal is hosted on a remote server. More... | |
virtual int | Timeout [getset] |
Gets or sets the Client timeout in milliseconds (0 uses default timeout). More... | |
string | DataPortalUrl [getprotected set] |
Gets the URL address for the data portal server used by this proxy instance. More... | |
Properties inherited from Csla.DataPortalClient.IDataPortalProxy | |
bool | IsServerRemote [get] |
Get a value indicating whether this proxy will invoke a remote data portal server, or run the "server-side" data portal in the caller's process and AppDomain. More... | |
Implements a data portal proxy to relay data portal calls to a remote application server.
Definition at line 22 of file DataPortalProxy.cs.
Csla.DataPortalClient.DataPortalProxy.DataPortalProxy | ( | ApplicationContext | applicationContext | ) |
applicationContext |
Definition at line 28 of file DataPortalProxy.cs.
|
protectedpure virtual |
Override this method with implementation of sending and receiving of data to the server Returns serialised response from server
serialized | Serialised request |
operation | DataPortal operation |
routingToken | Routing Tag for server |
isSync | True if the client-side proxy should synchronously invoke the server. |
Implemented in Csla.Channels.Grpc.GrpcProxy, Csla.Channels.RabbitMq.RabbitMqProxy, and Csla.Channels.Http.HttpProxy.
|
protectedvirtual |
Override this method to manipulate the message request data sent to the server.
request | Criteria request data. |
Definition at line 269 of file DataPortalProxy.cs.
|
protectedvirtual |
Override this method to manipulate the message request data sent to the server.
request | Update request data. |
Definition at line 279 of file DataPortalProxy.cs.
|
protectedvirtual |
Override this method to manipulate the message request data returned from the server.
response | Response data. |
Definition at line 289 of file DataPortalProxy.cs.
|
virtual |
Called by DataPortal to create a new business object.
objectType | Type of business object to create. |
criteria | Criteria object describing business object. |
context | Server.DataPortalContext object passed to the server. |
isSync | True if the client-side proxy should synchronously invoke the server. |
Implements Csla.Server.IDataPortalServer.
Reimplemented in Csla.Channels.RabbitMq.RabbitMqProxy.
Definition at line 66 of file DataPortalProxy.cs.
|
virtual |
Called by DataPortal to delete a business object.
objectType | Type of business object to create. |
criteria | Criteria object describing business object. |
context | Server.DataPortalContext object passed to the server. |
isSync | True if the client-side proxy should synchronously invoke the server. |
Implements Csla.Server.IDataPortalServer.
Reimplemented in Csla.Channels.RabbitMq.RabbitMqProxy.
Definition at line 220 of file DataPortalProxy.cs.
|
virtual |
Called by DataPortal to load an existing business object.
objectType | Type of business object to create. |
criteria | Criteria object describing business object. |
context | Server.DataPortalContext object passed to the server. |
isSync | True if the client-side proxy should synchronously invoke the server. |
Implements Csla.Server.IDataPortalServer.
Reimplemented in Csla.Channels.RabbitMq.RabbitMqProxy.
Definition at line 118 of file DataPortalProxy.cs.
|
virtual |
Called by DataPortal to update a business object.
obj | The business object to update. |
context | Server.DataPortalContext object passed to the server. |
isSync | True if the client-side proxy should synchronously invoke the server. |
Implements Csla.Server.IDataPortalServer.
Reimplemented in Csla.Channels.RabbitMq.RabbitMqProxy.
Definition at line 171 of file DataPortalProxy.cs.
|
getsetprotected |
Gets or sets the current ApplicationContext object.
Definition at line 36 of file DataPortalProxy.cs.
|
getprotected set |
Gets the URL address for the data portal server used by this proxy instance.
Definition at line 54 of file DataPortalProxy.cs.
|
get |
Gets a value indicating whether the data portal is hosted on a remote server.
Definition at line 42 of file DataPortalProxy.cs.
|
getset |
Gets or sets the Client timeout in milliseconds (0 uses default timeout).
Definition at line 48 of file DataPortalProxy.cs.