Class WorkflowService.Core
- Namespace
- Temporalio.Client
- Assembly
- Temporalio.dll
Implementation of the workflow service.
public class WorkflowService.Core : WorkflowService
- Inheritance
-
WorkflowService.Core
- Inherited Members
-
WorkflowService.GetWorkerBuildIdCompatibilityAsync(GetWorkerBuildIdCompatibilityRequest, RpcOptions)
Constructors
Core(TemporalConnection)
Initializes a new instance of the WorkflowService.Core class.
public Core(TemporalConnection connection)
Parameters
connection
TemporalConnectionConnection to use.
Methods
InvokeRpcAsync<T>(string, IMessage, MessageParser<T>, RpcOptions?)
Invoke an RPC method.
protected override Task<T> InvokeRpcAsync<T>(string rpc, IMessage req, MessageParser<T> resp, RpcOptions? options = null) where T : IMessage<T>
Parameters
rpc
stringName of the RPC method.
req
IMessageProtobuf message request.
resp
MessageParser<T>Parser for the protobuf message response.
options
RpcOptionsOptional RPC options for the call.
Returns
- Task<T>
Parsed protobuf result.
Type Parameters
T
Resulting protobuf message type.