MessageBusSubscriberOptionsTParameter, TReturn Constructor
Initializes an instance of MessageBusSubscriberOptions.
Namespace: SecretNest.MessageBus.OptionsAssembly: SecretNest.MessageBus.DirectRelease (in SecretNest.MessageBus.DirectRelease.dll) Version: 1.0.0
public MessageBusSubscriberOptions(
int sequence = 0,
bool isAlwaysExecution = false,
Func<Object?, bool>? conditionCheckingCallback = null,
Func<TReturn, bool>? resultCheckingCallback = null,
Func<Object?, TParameter>? argumentConvertingCallback = null,
Func<TReturn, Object?>? returnValueConvertingCallback = null
)
Public Sub New (
Optional sequence As Integer = 0,
Optional isAlwaysExecution As Boolean = false,
Optional conditionCheckingCallback As Func(Of Object, Boolean) = Nothing,
Optional resultCheckingCallback As Func(Of TReturn, Boolean) = Nothing,
Optional argumentConvertingCallback As Func(Of Object, TParameter) = Nothing,
Optional returnValueConvertingCallback As Func(Of TReturn, Object) = Nothing
)
Parameters
- sequence Int32 (Optional)
- The sequence number of this subscriber when executing. Default value is 0.
- isAlwaysExecution Boolean (Optional)
- Whether the subscriber should be executed regardless of the result of the subscribers those have been executed by this instance. Default value is .
- conditionCheckingCallback FuncObject, Boolean (Optional)
- The callback for condition checking.
- resultCheckingCallback FuncTReturn, Boolean (Optional)
- The callback for checking result.
- argumentConvertingCallback FuncObject, TParameter (Optional)
- The callback for argument conversion.
- returnValueConvertingCallback FuncTReturn, Object (Optional)
- The callback for return value conversion.