Implements a data portal proxy to relay data portal calls to a remote application server by using gRPC. More...
Public Member Functions | |
GrpcProxy (ApplicationContext applicationContext, GrpcChannel channel, GrpcProxyOptions options) | |
Creates an instance of the object, initializing it to use the supplied GrpcChannel object and URL. More... | |
Public Member Functions inherited from Csla.DataPortalClient.DataPortalProxy | |
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 GrpcChannel | GetChannel () |
Gets the GrpcChannel used by the gRPC client. More... | |
virtual GrpcService.GrpcServiceClient | GetGrpcClient () |
Get gRPC client object used by data portal. More... | |
override async Task< byte[]> | CallDataPortalServer (byte[] serialized, string operation, string routingToken, bool isSync) |
Create message and send to Grpc server. More... | |
Protected Member Functions inherited from Csla.DataPortalClient.DataPortalProxy | |
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... | |
Static Protected Member Functions | |
static void | SetChannel (GrpcChannel channel) |
Sets the GrpcChannel used by gRPC clients. More... | |
Additional Inherited Members | |
Properties inherited from Csla.DataPortalClient.DataPortalProxy | |
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 by using gRPC.
Definition at line 19 of file GrpcProxy.cs.
Csla.Channels.Grpc.GrpcProxy.GrpcProxy | ( | ApplicationContext | applicationContext, |
GrpcChannel | channel, | ||
GrpcProxyOptions | options | ||
) |
Creates an instance of the object, initializing it to use the supplied GrpcChannel object and URL.
applicationContext | |
channel | GrpcChannel instance |
options | Proxy options |
Definition at line 28 of file GrpcProxy.cs.
|
protectedvirtual |
Create message and send to Grpc server.
Return 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. |
Implements Csla.DataPortalClient.DataPortalProxy.
Definition at line 81 of file GrpcProxy.cs.
|
protectedvirtual |
|
protectedvirtual |
|
staticprotected |
Sets the GrpcChannel used by gRPC clients.
channel | GrpcChannel instance |
Definition at line 56 of file GrpcProxy.cs.