Implements a data portal proxy to relay data portal calls to a remote application server. More...
Public Member Functions | |
| 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 | |
| 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 = ApplicationContext.DataPortalUrlString [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 23 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.DataPortalClient.HttpProxy.
|
protectedvirtual |
Override this method to manipulate the message request data sent to the server.
| request | Criteria request data. |
Definition at line 260 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 270 of file DataPortalProxy.cs.
|
protectedvirtual |
Override this method to manipulate the message request data returned from the server.
| response | Response data. |
Definition at line 280 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 53 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 210 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 106 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 160 of file DataPortalProxy.cs.
|
getprotected set |
Gets the URL address for the data portal server used by this proxy instance.
Definition at line 41 of file DataPortalProxy.cs.
|
get |
Gets a value indicating whether the data portal is hosted on a remote server.
Definition at line 29 of file DataPortalProxy.cs.
|
getset |
Gets or sets the Client timeout in milliseconds (0 uses default timeout).
Definition at line 35 of file DataPortalProxy.cs.