Class TestService.Impl
Implementation of the test service.
Inherited Members
Namespace: Temporalio.Client
Assembly: Temporalio.dll
Syntax
public class Impl : TestService
Constructors
Impl(TemporalConnection)
Initializes a new instance of the TestService.Impl class.
Declaration
public Impl(TemporalConnection connection)
Parameters
Type | Name | Description |
---|---|---|
TemporalConnection | connection | Connection to use. |
Methods
InvokeRpcAsync<T>(String, IMessage, MessageParser<T>, RpcOptions)
Invoke an RPC method.
Declaration
protected override 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. |
Overrides
Temporalio.Client.RpcService.InvokeRpcAsync<T>(System.String, IMessage, MessageParser<T>, Temporalio.Client.RpcOptions)