Class NexusClientExtensions
- Namespace
- Temporalio.Client
- Assembly
- Temporalio.dll
Client methods for standalone Nexus operations with typed completion callbacks.
public static class NexusClientExtensions
- Inheritance
-
NexusClientExtensions
- Inherited Members
Methods
ExecuteNexusOperationAsync<TOutput>(NexusClient, string, object?, NexusOperationOptions<TOutput>)
Runs a named Nexus operation with typed completion callbacks and waits for its result.
public static Task<TOutput> ExecuteNexusOperationAsync<TOutput>(this NexusClient client, string operationName, object? arg, NexusOperationOptions<TOutput> options)
Parameters
clientNexusClientThe Nexus client.
operationNamestringThe name of the source operation.
argobjectThe argument for the source operation.
optionsNexusOperationOptions<TOutput>The operation options and completion callbacks.
Returns
- Task<TOutput>
The result of the operation.
Type Parameters
TOutputThe type of the operation's result.
Remarks
WARNING: This API is experimental and may change.
ExecuteNexusOperationAsync<TService>(NexusClient<TService>, Expression<Action<TService>>, NexusOperationOptions<NoValue>)
Runs a void-returning Nexus operation with typed completion callbacks and waits for completion.
public static Task ExecuteNexusOperationAsync<TService>(this NexusClient<TService> client, Expression<Action<TService>> operationStartCall, NexusOperationOptions<NoValue> options)
Parameters
clientNexusClient<TService>The Nexus client.
operationStartCallExpression<Action<TService>>An expression that calls a no-value source operation.
optionsNexusOperationOptions<NoValue>The operation options and completion callbacks.
Returns
- Task
A task representing completion of the operation.
Type Parameters
TServiceThe source service interface.
Remarks
WARNING: This API is experimental and may change.
Exceptions
- ArgumentException
The expression does not select a registered no-value operation.
ExecuteNexusOperationAsync<TService, TOutput>(NexusClient<TService>, Expression<Func<TService, TOutput>>, NexusOperationOptions<TOutput>)
Runs a Nexus operation with typed completion callbacks and waits for its result.
public static Task<TOutput> ExecuteNexusOperationAsync<TService, TOutput>(this NexusClient<TService> client, Expression<Func<TService, TOutput>> operationStartCall, NexusOperationOptions<TOutput> options)
Parameters
clientNexusClient<TService>The Nexus client.
operationStartCallExpression<Func<TService, TOutput>>An expression that calls the source operation.
optionsNexusOperationOptions<TOutput>The operation options and completion callbacks.
Returns
- Task<TOutput>
The result of the operation.
Type Parameters
TServiceThe source service interface.
TOutputThe type of the operation's result.
Remarks
WARNING: This API is experimental and may change.
StartNexusOperationAsync<TOutput>(NexusClient, string, object?, NexusOperationOptions<TOutput>)
Starts a named Nexus operation with typed completion callbacks.
public static Task<NexusOperationHandle<TOutput>> StartNexusOperationAsync<TOutput>(this NexusClient client, string operationName, object? arg, NexusOperationOptions<TOutput> options)
Parameters
clientNexusClientThe Nexus client.
operationNamestringThe name of the source operation.
argobjectThe argument for the source operation.
optionsNexusOperationOptions<TOutput>The operation options and completion callbacks.
Returns
- Task<NexusOperationHandle<TOutput>>
A handle to the started operation.
Type Parameters
TOutputThe type of the operation's result.
Remarks
WARNING: This API is experimental and may change.
StartNexusOperationAsync<TService>(NexusClient<TService>, Expression<Action<TService>>, NexusOperationOptions<NoValue>)
Starts a void-returning Nexus operation with typed completion callbacks.
public static Task<NexusOperationHandle> StartNexusOperationAsync<TService>(this NexusClient<TService> client, Expression<Action<TService>> operationStartCall, NexusOperationOptions<NoValue> options)
Parameters
clientNexusClient<TService>The Nexus client.
operationStartCallExpression<Action<TService>>An expression that calls a no-value source operation.
optionsNexusOperationOptions<NoValue>The operation options and completion callbacks.
Returns
- Task<NexusOperationHandle>
A handle to the started operation.
Type Parameters
TServiceThe source service interface.
Remarks
WARNING: This API is experimental and may change.
Exceptions
- ArgumentException
The expression does not select a registered no-value operation.
StartNexusOperationAsync<TService, TOutput>(NexusClient<TService>, Expression<Func<TService, TOutput>>, NexusOperationOptions<TOutput>)
Starts a Nexus operation with completion callbacks for its result type.
public static Task<NexusOperationHandle<TOutput>> StartNexusOperationAsync<TService, TOutput>(this NexusClient<TService> client, Expression<Func<TService, TOutput>> operationStartCall, NexusOperationOptions<TOutput> options)
Parameters
clientNexusClient<TService>The Nexus client.
operationStartCallExpression<Func<TService, TOutput>>An expression that calls the source operation.
optionsNexusOperationOptions<TOutput>The operation options and completion callbacks.
Returns
- Task<NexusOperationHandle<TOutput>>
A handle to the started operation.
Type Parameters
TServiceThe source service interface.
TOutputThe type of the operation's result.
Remarks
WARNING: This API is experimental and may change.