Table of Contents

Interface ISchedulerRegistry

Namespace
Quartz
Assembly
Quartz.dll

Lists the schedulers a container knows about, whether or not any of them has been created.

public interface ISchedulerRegistry

Remarks

This is the read that distinguishes registered from running. ISchedulerRepository holds scheduler instances, so LookupAll() and GetAllSchedulers(CancellationToken) can only report the schedulers something already asked for — under a multi-tenant registration that means an operator cannot enumerate tenants without starting every one of them. This one reads the registrations, and says of each whether a scheduler exists behind it.

Registered by AddQuartz, so any container with Quartz in it has one. It answers for the container it belongs to and no other; a second container in the same process has its own.

Methods

QuerySchedulers(CancellationToken)

Returns every scheduler this container has registered, plus every scheduler bound into its repository that no registration accounts for, ordered by name.

ValueTask<List<SchedulerRegistration>> QuerySchedulers(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation instruction.

Returns

ValueTask<List<SchedulerRegistration>>

Remarks

Nothing is created by asking: a registration that has never been resolved is reported with a null Status rather than built.