Table of Contents

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

TResult

Result type of the operation.

Inheritance
NexusOperationHandle<TResult>
Implements
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

Client ITemporalClient

Client used for operation handle calls.

Id string

Operation ID.

RunId string

Operation 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

rpcOptions RpcOptions

RPC 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.