MessageBusSubscriberOptionsTParameter, TReturn Constructor

Initializes an instance of MessageBusSubscriberOptions.

Definition

Namespace: SecretNest.MessageBus.Options
Assembly: SecretNest.MessageBus.DirectRelease (in SecretNest.MessageBus.DirectRelease.dll) Version: 1.0.0
C#
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
)

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.

See Also