Class JobScheduleId
- Namespace
- MailFathom.Application.Jobs.Scheduling
- Assembly
- MailFathom.Application.dll
Identifies one recurring dispatch across restarts, reloads, and replicas.
public sealed record JobScheduleId : IEquatable<JobScheduleId>
- Inheritance
-
JobScheduleId
- Implements
- Inherited Members
Remarks
The identity is what the durable state of a schedule is keyed by, so it has to survive a process and mean the same thing on every instance reading one configuration. It is therefore composed of what the declaration names — an account identifier, a rule name — rather than generated, and it changes only when the declaration it stands for is a different one. A schedule whose identity changed would be seeded afresh and would forget the occasion it last dispatched.
It is composed of MailFathom's own names, never of anything out of a message, for the reason JobIdempotencyKey is: an operator reads this text when they ask why a scheduled run has not happened, and personal data in it would make the schedule table a second uncontrolled copy of it.
Fields
- MaximumLength
The greatest length an identity may have, which bounds the column it is keyed by.
Properties
- Value
Gets the text the schedule's durable state is keyed by.
Methods
- Create(string)
Creates an identity from the text whoever declares the schedule composed.
- ToString()
Returns a string that represents the current object.