MessageExecutorBaseTParameter, TReturnExecuteAsync Method

Asynchronously executes with the argument provided and get the return value.

Definition

Namespace: SecretNest.MessageBus
Assembly: SecretNest.MessageBus.DirectRelease (in SecretNest.MessageBus.DirectRelease.dll) Version: 1.0.0
C#
public abstract Task<TReturn> ExecuteAsync(
	TParameter argument,
	CancellationToken? cancellationToken = null
)

Parameters

argument  TParameter
Argument.
cancellationToken  NullableCancellationToken  (Optional)
The token to monitor for cancellation requests. The default value is .

Return Value

TaskTReturn
A task that represents the asynchronous operation, which wraps the return value.

See Also