Class QuartzConsumerBase

Assembly: redb.Route.Quartz.dll

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

Object→QuartzConsumerBase

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)

Start(CancellationToken)

Starts consuming messages.

public Task Start(CancellationToken ct = default)

Stop(CancellationToken)

Stops consuming messages.

public Task Stop(CancellationToken ct = default)

Constructors