MessageExecutorBaseTParameter, TReturnExecuteAsync Method
Asynchronously executes with the argument provided and get the return value.
Namespace: SecretNest.MessageBusAssembly: SecretNest.MessageBus.DirectRelease (in SecretNest.MessageBus.DirectRelease.dll) Version: 1.0.0
public abstract Task<TReturn> ExecuteAsync(
TParameter argument,
CancellationToken? cancellationToken = null
)
Public MustOverride Function ExecuteAsync (
argument As TParameter,
Optional cancellationToken As CancellationToken? = Nothing
) As Task(Of TReturn)
- argument TParameter
- Argument.
- cancellationToken NullableCancellationToken (Optional)
- The token to monitor for cancellation requests. The default value is .
TaskTReturnA task that represents the asynchronous operation, which wraps the return value.