Class RpcService
Base class for raw gRPC services.
Namespace: Temporalio.Client
Assembly: Temporalio.dll
Syntax
public abstract class RpcService : object
Methods
InvokeRpcAsync<T>(String, IMessage, MessageParser<T>, RpcOptions)
Invoke an RPC method.
Declaration
protected abstract Task<T> InvokeRpcAsync<T>(string rpc, IMessage req, MessageParser<T> resp, RpcOptions options = null)
where T : IMessage<T>
Parameters
Type | Name | Description |
---|---|---|
String | rpc | Name of the RPC method. |
IMessage | req | Protobuf message request. |
MessageParser<T> | resp | Parser for the protobuf message response. |
RpcOptions | options | Optional RPC options for the call. |
Returns
Type | Description |
---|---|
Task<T> | Parsed protobuf result. |
Type Parameters
Name | Description |
---|---|
T | Resulting protobuf message type. |