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
DbProvider
The db provider.
public required IDbProvider DbProvider { get; init; }
Property Value
InstanceId
The identifier of this scheduler node within a cluster, stored in INSTANCE_NAME.
public required string InstanceId { get; init; }
Property Value
LoggerFactory
The factory the delegate creates its logger from, defaulting to Instance.
public ILoggerFactory LoggerFactory { get; init; }
Property Value
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
SchedulerName
Name of the scheduler whose rows the delegate reads and writes, stored in SCHED_NAME.
public required string SchedulerName { get; init; }
Property Value
TablePrefix
The prefix of all table names.
public required string TablePrefix { get; init; }
Property Value
TimeProvider
Time provider to use, defaults to System.
public TimeProvider TimeProvider { get; init; }
Property Value
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
TypeLoader
The type loading strategy.
public required ITypeLoader TypeLoader { get; init; }
Property Value
UseProperties
Whether simple NameValueCollection should be used (for serialization safety).
public bool UseProperties { get; init; }