Implements a data portal proxy to relay data portal calls to a remote application server by using gRPC.
More...
|
| | GrpcProxy (ApplicationContext applicationContext, GrpcChannel channel, GrpcProxyOptions options, DataPortalOptions dataPortalOptions) |
| | Creates an instance of the object, initializing it to use the supplied GrpcChannel object and URL.
|
| 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 GrpcChannel | GetChannel () |
| | Gets the GrpcChannel used by the gRPC client.
|
| virtual GrpcService.GrpcServiceClient | GetGrpcClient () |
| | Get gRPC client object used by data portal.
|
| override async Task< byte[]> | CallDataPortalServer (byte[] serialized, string operation, string? routingToken, bool isSync) |
| | Create message and send to Grpc server. Return Response from server.
|
| | 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 gRPC.