Implements a data portal proxy to relay data portal calls to a remote application server by using http.
More...
|
| | HttpProxy (ApplicationContext applicationContext, HttpClient httpClient, HttpProxyOptions options, DataPortalOptions dataPortalOptions) |
| | Creates an instance of the type, initializing it to use the supplied HttpClient object and options.
|
| virtual 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. |
|
| virtual 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. |
|
| virtual 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. |
|
| virtual 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. |
|
|
| virtual ? HttpClientHandler | GetHttpClientHandler () |
| | Gets an HttpClientHandler for use in initializing the HttpClient instance.
|
| virtual HttpClient | GetHttpClient () |
| | Gets an HttpClient object for use in asynchronous communication with the server.
|
| virtual WebClient | GetWebClient () |
| | Gets an WebClient object for use in synchronous communication with the server.
|
| override async Task< byte[]> | CallDataPortalServer (byte[] serialized, string operation, string? routingToken, bool isSync) |
| | Select client to make request based on isSync parameter and return response from server.
|
| virtual void | SetHttpRequestHeaders (HttpRequestMessage request) |
| | Override to set headers or other properties of the HttpRequestMessage before it is sent to the server (asynchronous only).
|
| virtual void | SetWebClientHeaders (WebClient client) |
| | Override to set headers or other properties of the WebClient before it is sent to the server (synchronous only).
|
| | 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 a remote application server by using http.