Class NexusOperationHandle<TResult>
- Namespace
- Temporalio.Client
- Assembly
- Temporalio.dll
Handle for a standalone Nexus operation with a known result type.
public record NexusOperationHandle<TResult> : NexusOperationHandle, IEquatable<NexusOperationHandle>, IEquatable<NexusOperationHandle<TResult>>
Type Parameters
TResultResult type of the operation.
- Inheritance
-
NexusOperationHandle<TResult>
- Implements
-
IEquatable<NexusOperationHandle<TResult>>
- Inherited Members
Remarks
WARNING: Standalone Nexus operations are experimental.
Constructors
NexusOperationHandle(ITemporalClient, string, string?)
Handle for a standalone Nexus operation with a known result type.
public NexusOperationHandle(ITemporalClient Client, string Id, string? RunId = null)
Parameters
ClientITemporalClientClient used for operation handle calls.
IdstringOperation ID.
RunIdstringOperation run ID if known.
Remarks
WARNING: Standalone Nexus operations are experimental.
Methods
GetResultAsync(RpcOptions?)
Wait for the result of the operation.
public Task<TResult> GetResultAsync(RpcOptions? rpcOptions = null)
Parameters
rpcOptionsRpcOptionsRPC options for the call.
Returns
- Task<TResult>
Result of the operation.
Remarks
WARNING: Standalone Nexus operations are experimental.
Exceptions
- NexusOperationFailedException
Exception thrown for unsuccessful operation result.
- RpcException
Server-side error.