Class QuartzConsumerBase
Base class for Quartz-based consumers. Handles shared scheduler lifecycle,
job creation, orphan cleanup, and concurrency control via semaphore.
Subclasses provide trigger configuration (simple schedule vs cron expression).
public abstract class QuartzConsumerBase : IConsumer
Inheritance
Implements
Derived
Properties
DrainTimeout
Maximum time to wait for in-flight jobs to complete during stop.
public TimeSpan DrainTimeout { get; set; }
Endpoint
The endpoint this consumer is attached to (for diagnostics/logging).
public IEndpoint Endpoint { get; }
EndpointUriKey
Gets the endpoint URI string used as job/trigger group key.
protected string EndpointUriKey { get; }
Methods
BuildTrigger(TriggerKey, JobKey)
Builds the Quartz trigger for this consumer. Called once during .
protected abstract ITrigger BuildTrigger(TriggerKey triggerKey, JobKey jobKey)
PopulateExchangeProperties(IExchange, IJobExecutionContext)
Populates exchange with component-specific properties (e.g. cron schedule, timer period, fire time).
protected abstract void PopulateExchangeProperties(IExchange exchange, IJobExecutionContext context)
Constructors
QuartzConsumerBase(IEndpoint, IProcessor, int, string?, string?, bool, bool, bool, bool, bool, bool, string?)
Creates a Quartz consumer base.