MessageBusBaseExecuteOnceWithReturnTParameter, TReturn Method

Executes as publisher specified by message name 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 TReturn ExecuteOnceWithReturn<TParameter, TReturn>(
	string messageName,
	TParameter argument,
	MessageBusPublisherOptions<TParameter, TReturn>? options = null
)

Parameters

messageName  String
The name of this message.
argument  TParameter
Argument.
options  MessageBusPublisherOptionsTParameter, TReturn  (Optional)
The instance of publisher options. Default is .

Type Parameters

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

Return Value

TReturn
Return value.

See Also