Table of Contents

Class DriverDelegateContext

Namespace
Quartz.Impl.AdoJobStore
Assembly
Quartz.dll

The settings a IDriverDelegate works from, handed to Initialize(DriverDelegateContext) once by the job store before the delegate is used.

public sealed record DriverDelegateContext : IEquatable<DriverDelegateContext>
Inheritance
DriverDelegateContext
Implements
Inherited Members

Remarks

This arrives after construction rather than through the delegate's constructor because InstanceId can be generated once the scheduler starts — see the remarks on AdoJobStoreBase.InstanceId — so it is not known when the container builds the delegate.

Properties

CommandTimeout

How long a statement may run before the provider cancels it. null leaves the provider's own default in place.

public TimeSpan? CommandTimeout { get; init; }

Property Value

TimeSpan?

DbProvider

The db provider.

public required IDbProvider DbProvider { get; init; }

Property Value

IDbProvider

InstanceId

The identifier of this scheduler node within a cluster, stored in INSTANCE_NAME.

public required string InstanceId { get; init; }

Property Value

string

LoggerFactory

The factory the delegate creates its logger from, defaulting to Instance.

public ILoggerFactory LoggerFactory { get; init; }

Property Value

ILoggerFactory

Remarks

The job store passes the factory its container gave it, which is what makes a delegate's statements and failures visible in an application that never set LogProvider. A delegate initialized by hand — in a test, in a benchmark — is handed nothing and logs nowhere, which is what a delegate outside a scheduler should do.

ObjectSerializer

Object serializer and deserializer strategy to use.

public IObjectSerializer? ObjectSerializer { get; init; }

Property Value

IObjectSerializer

SchedulerName

Name of the scheduler whose rows the delegate reads and writes, stored in SCHED_NAME.

public required string SchedulerName { get; init; }

Property Value

string

TablePrefix

The prefix of all table names.

public required string TablePrefix { get; init; }

Property Value

string

TimeProvider

Time provider to use, defaults to System.

public TimeProvider TimeProvider { get; init; }

Property Value

TimeProvider

TriggerPersistenceDelegates

Custom trigger persistence delegates the delegate serves beyond the built-in five, registered through UseTriggerPersistenceDelegate<T>().

public IReadOnlyCollection<ITriggerPersistenceDelegate> TriggerPersistenceDelegates { get; init; }

Property Value

IReadOnlyCollection<ITriggerPersistenceDelegate>

TypeLoader

The type loading strategy.

public required ITypeLoader TypeLoader { get; init; }

Property Value

ITypeLoader

UseProperties

Whether simple NameValueCollection should be used (for serialization safety).

public bool UseProperties { get; init; }

Property Value

bool