Class EventBusBuilderOptions
- Namespace
- ReflectionEventing
- Assembly
- ReflectionEventing.dll
Represents configuration options for the EventBusBuilder class. These options control the behavior of the event bus built by the EventBusBuilder.
public class EventBusBuilderOptions
- Inheritance
-
EventBusBuilderOptions
- Inherited Members
Properties
ConcurrentTaskLimit
Gets or sets the maximum number of concurrent tasks that can be processed. This value is used to limit the number of tasks running in parallel when QueueMode is set to Parallel. The default value is 100.
public int ConcurrentTaskLimit { get; set; }
Property Value
ErrorTickRate
Gets or sets the rate at which the error queue is processed when default queue consumption fails. The default value is 20ms.
public TimeSpan ErrorTickRate { get; set; }
Property Value
Remarks
Adjust this value to control how frequently the error queue is processed.
QueueMode
Gets or sets the mode in which events in the queue are processed. If set to Sequential, events are processed one at a time in the order they are received. If set to Parallel, events are processed concurrently, allowing multiple events to be handled at the same time. The default value is Sequential.
public ProcessingMode QueueMode { get; set; }
Property Value
QueueTickRate
Gets or sets the rate at which the event queue is processed. The default value is 20ms.
public TimeSpan QueueTickRate { get; set; }
Property Value
Remarks
Adjust this value to control how frequently the event queue is processed.
UseErrorQueue
Gets or sets a value indicating whether the event bus should use an error queue. If set to true, the event bus will use an error queue to handle events that fail processing. If set to false, the event bus will not use an error queue. The default value is false.
public bool UseErrorQueue { get; set; }
Property Value
UseEventPolymorphism
Gets or sets a value indicating whether the event bus should use event polymorphism. If set to true, the event bus will deliver events to consumers that handle the event type or any of its base types. If set to false, the event bus will only deliver events to consumers that handle the exact event type. The default value is false.
public bool UseEventPolymorphism { get; set; }
Property Value
UseEventsQueue
Gets or sets a value indicating whether the event bus should use a background events queue. If set to true, the event bus will use a background queue to process events. If set to false, the event bus will process events immediately without using a background queue. The default value is true.
public bool UseEventsQueue { get; set; }