MessageBusExecuteOnceAndGetMessageInstanceWithReturnTParameter, TReturn(String, TParameter, MessageInstance, MessageBusPublisherOptionsTParameter, TReturn) Method
Executes as publisher specified by message name with the argument provided and get the return value with the instance information of this executing.
Namespace: SecretNest.MessageBusAssembly: SecretNest.MessageBus.DirectRelease (in SecretNest.MessageBus.DirectRelease.dll) Version: 1.0.0
public override TReturn ExecuteOnceAndGetMessageInstanceWithReturn<TParameter, TReturn>(
string messageName,
TParameter argument,
out MessageInstance messageInstance,
MessageBusPublisherOptions<TParameter, TReturn>? options = null
)
Public Overrides Function ExecuteOnceAndGetMessageInstanceWithReturn(Of TParameter, TReturn) (
messageName As String,
argument As TParameter,
<OutAttribute> ByRef messageInstance As MessageInstance,
Optional options As MessageBusPublisherOptions(Of TParameter, TReturn) = Nothing
) As TReturn
- messageName String
- The name of this message.
- argument TParameter
- Argument.
- messageInstance MessageInstance
- When the method returns, contains the instance information of this executing.
- options MessageBusPublisherOptionsTParameter, TReturn (Optional)
- The instance of publisher options. Default is .
- TParameter
- The type of the parameter.
- TReturn
- The type of the return value.
TReturnReturn value.