MessageBusBaseExecuteOnceAndGetMessageInstanceAsyncTParameter Method
Asynchronously executes as publisher specified by message name with the argument provided and get the instance information of this executing.
Namespace: SecretNest.MessageBusAssembly: SecretNest.MessageBus.DirectRelease (in SecretNest.MessageBus.DirectRelease.dll) Version: 1.0.0
public abstract Task<MessageInstance> ExecuteOnceAndGetMessageInstanceAsync<TParameter>(
string messageName,
TParameter argument,
MessageBusPublisherOptions<TParameter>? options = null,
CancellationToken? cancellationToken = null
)
Public MustOverride Function ExecuteOnceAndGetMessageInstanceAsync(Of TParameter) (
messageName As String,
argument As TParameter,
Optional options As MessageBusPublisherOptions(Of TParameter) = Nothing,
Optional cancellationToken As CancellationToken? = Nothing
) As Task(Of MessageInstance)
- messageName String
- The name of this message.
- argument TParameter
- Argument.
- options MessageBusPublisherOptionsTParameter (Optional)
- The instance of publisher options. Default is .
- cancellationToken NullableCancellationToken (Optional)
- The token to monitor for cancellation requests. The default value is .
- TParameter
- The type of the parameter.
TaskMessageInstanceA task that represents the asynchronous operation, which wraps the instance information of this executing.