SubscriberAsyncTParameter, TReturn Delegate

Async delegate of a subscriber with return value.

Definition

Namespace: SecretNest.MessageBus
Assembly: SecretNest.MessageBus.DirectRelease (in SecretNest.MessageBus.DirectRelease.dll) Version: 1.0.0
C#
public delegate Task<TReturn> SubscriberAsync<TParameter, TReturn>(
	TParameter argument,
	CancellationToken cancellationToken
)

Parameters

argument  TParameter
Argument.
cancellationToken  CancellationToken
The token to monitor for cancellation requests.

Type Parameters

TParameter
The type of the parameter.
TReturn
The type of the return value.

Return Value

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

See Also