Class RpcService
- Namespace
- Temporalio.Client
- Assembly
- Temporalio.dll
Base class for raw gRPC services.
public abstract class RpcService
- Inheritance
-
RpcService
- Derived
- Inherited Members
Methods
InvokeRpcAsync<T>(string, IMessage, MessageParser<T>, RpcOptions?)
Invoke an RPC method.
protected abstract Task<T> InvokeRpcAsync<T>(string rpc, IMessage req, MessageParser<T> resp, RpcOptions? options = null) where T : IMessage<T>
Parameters
rpcstringName of the RPC method.
reqIMessageProtobuf message request.
respMessageParser<T>Parser for the protobuf message response.
optionsRpcOptionsOptional RPC options for the call.
Returns
- Task<T>
Parsed protobuf result.
Type Parameters
TResulting protobuf message type.