Table of Contents

Class PauseInfo

Namespace
Quartz
Assembly
Quartz.dll

A pause as a store recorded it: why, who asked, and when.

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

Remarks

What GetTriggerPause(TriggerKey, CancellationToken), GetTriggerGroupPause(string, CancellationToken) and GetJobGroupPause(string, CancellationToken) answer, and what Pause carries. Only a pause that said something is recorded, so at least one of the two texts is set; a reasonless pause has no PauseInfo.

Constructors

PauseInfo(string?, string?, DateTimeOffset)

A pause as a store recorded it: why, who asked, and when.

public PauseInfo(string? Reason, string? RequestedBy, DateTimeOffset PausedAtUtc)

Parameters

Reason string

Why, as Reason said it, cut to MaxReasonLength; null when nothing was said.

RequestedBy string

Who asked, cut to MaxRequestedByLength; null when nobody said.

PausedAtUtc DateTimeOffset

When the pause was made, on the scheduler's clock.

Remarks

What GetTriggerPause(TriggerKey, CancellationToken), GetTriggerGroupPause(string, CancellationToken) and GetJobGroupPause(string, CancellationToken) answer, and what Pause carries. Only a pause that said something is recorded, so at least one of the two texts is set; a reasonless pause has no PauseInfo.

Properties

PausedAtUtc

When the pause was made, on the scheduler's clock.

public DateTimeOffset PausedAtUtc { get; init; }

Property Value

DateTimeOffset

Reason

Why, as Reason said it, cut to MaxReasonLength; null when nothing was said.

public string? Reason { get; init; }

Property Value

string

RequestedBy

Who asked, cut to MaxRequestedByLength; null when nobody said.

public string? RequestedBy { get; init; }

Property Value

string