SubscriberAsyncTParameter, TReturn Delegate
Async delegate of a subscriber with return value.
Namespace: SecretNest.MessageBusAssembly: SecretNest.MessageBus.DirectRelease (in SecretNest.MessageBus.DirectRelease.dll) Version: 1.0.0
public delegate Task<TReturn> SubscriberAsync<TParameter, TReturn>(
TParameter argument,
CancellationToken cancellationToken
)
Public Delegate Function SubscriberAsync(Of TParameter, TReturn) (
argument As TParameter,
cancellationToken As CancellationToken
) As Task(Of TReturn)
- argument TParameter
- Argument.
- cancellationToken CancellationToken
- The token to monitor for cancellation requests.
- TParameter
- The type of the parameter.
- TReturn
- The type of the return value.
TaskTReturnA task that represents the asynchronous operation, which wraps the return value.