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
ReasonstringWhy, as Reason said it, cut to MaxReasonLength; null when nothing was said.
RequestedBystringWho asked, cut to MaxRequestedByLength; null when nobody said.
PausedAtUtcDateTimeOffsetWhen 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
Reason
Why, as Reason said it, cut to MaxReasonLength; null when nothing was said.
public string? Reason { get; init; }
Property Value
RequestedBy
Who asked, cut to MaxRequestedByLength; null when nobody said.
public string? RequestedBy { get; init; }