Implements a data portal proxy to relay data portal calls to an application server hosted locally in the client process and AppDomain.
More...
|
| | LocalProxy (ApplicationContext applicationContext, LocalProxyOptions options) |
| | Creates an instance of the type.
|
| override async Task< DataPortalResult > | Create ([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type objectType, object criteria, DataPortalContext context, bool isSync) |
| | Create a new business object.- Parameters
-
| 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. |
- Exceptions
-
| ArgumentNullException | objectType , criteria or context is null. |
|
| override async Task< DataPortalResult > | Fetch ([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type objectType, object criteria, DataPortalContext context, bool isSync) |
| | Get an existing business object.- Parameters
-
| objectType | Type of business object to retrieve. |
| 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. |
- Exceptions
-
| ArgumentNullException | objectType , criteria or context is null. |
|
| override async Task< DataPortalResult > | Update (ICslaObject obj, DataPortalContext context, bool isSync) |
| | Update a business object.- Parameters
-
| obj | Business object to update. |
| context | Server.DataPortalContext object passed to the server. |
| isSync | True if the client-side proxy should synchronously invoke the server. |
- Exceptions
-
| ArgumentNullException | obj or context is null. |
|
| override async Task< DataPortalResult > | Delete ([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type objectType, object criteria, DataPortalContext context, bool isSync) |
| | Delete a business object.- Parameters
-
| 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. |
- Exceptions
-
| ArgumentNullException | objectType , criteria or context is null. |
|
|
| override Task< byte[]> | CallDataPortalServer (byte[] serialized, string operation, string? routingToken, bool isSync) |
| | Not needed/implemented for Local Data Portal - throws not supported exception.
|
| virtual void | RestoringClientSideApplicationContext (ApplicationContext serverScopedApplicationContext, ApplicationContext clientSideApplicationContext) |
| | Method called once when execution returns to ApplicationContext.LogicalExecutionLocations.Client after a call to the dataportal. Only called when LocalProxyOptions.UseLocalScope is true.
|
| | DataPortalProxy (ApplicationContext applicationContext) |
| virtual CriteriaRequest | ConvertRequest (CriteriaRequest request) |
| | Override this method to manipulate the message request data sent to the server.
|
| virtual UpdateRequest | ConvertRequest (UpdateRequest request) |
| | Override this method to manipulate the message request data sent to the server.
|
| virtual DataPortalResponse | ConvertResponse (DataPortalResponse response) |
| | Override this method to manipulate the message request data returned from the server.
|
| 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 Serialized response from server.
|
| virtual void | OnServerComplete (DataPortalResult result, Type objectType, DataPortalOperations operationType) |
| | Called after completion of DataPortal operation regardless if operation was originated from the client or from chained calls on the server side.
|
| virtual void | OnServerCompleteClient (DataPortalResult result, Type objectType, DataPortalOperations operationType) |
| | Called after completion of a DataPortal operation which was initiated from the ApplicationContext.ExecutionLocations.Client This is NOT called on completion of chained DataPortal operations initiated on the server side.
|
Implements a data portal proxy to relay data portal calls to an application server hosted locally in the client process and AppDomain.