MessageBusPublisherOptionsTParameter, TReturn Constructor
Initializes an instance of MessageBusPublisherOptions.
Namespace: SecretNest.MessageBus.OptionsAssembly: SecretNest.MessageBus.DirectRelease (in SecretNest.MessageBus.DirectRelease.dll) Version: 1.0.0
public MessageBusPublisherOptions(
TReturn defaultReturnValue = null,
bool isAlwaysExecuteAll = false,
Func<TParameter, Object?>? argumentConvertingCallback = null,
Func<Object?, TReturn>? returnValueConvertingCallback = null
)
Public Sub New (
Optional defaultReturnValue As TReturn = Nothing,
Optional isAlwaysExecuteAll As Boolean = false,
Optional argumentConvertingCallback As Func(Of TParameter, Object) = Nothing,
Optional returnValueConvertingCallback As Func(Of Object, TReturn) = Nothing
)
Parameters
- defaultReturnValue TReturn (Optional)
- The default value for publisher returning.
- isAlwaysExecuteAll Boolean (Optional)
- Whether all subscribers should be executed regardless of the result of the subscribers those have been executed by this instance.
- argumentConvertingCallback FuncTParameter, Object (Optional)
- The callback for argument conversion.
- returnValueConvertingCallback FuncObject, TReturn (Optional)
- The callback for return value conversion.