Table of Contents

Class WorkScope

Namespace
MailFathom.Application.Coordination
Assembly
MailFathom.Application.dll

Names one unit of work that must not run twice, in the words an operator reads it back by.

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

Remarks

The scope is keyed exactly as the work's own progress is keyed, which is what stops the two from ever disagreeing about what one unit of the work is: where progress is one row for the deployment the scope is deployment-wide, where it is one row per account the scope is the account, and where an operator names the scope they name the lease with it. Nothing here decides that — the caller composes the text from the key its position row already carries.

It is composed of MailFathom's own names and identifiers — an account alias, a user identity, the name of a walk — and never of a subject, an address, or anything else out of a message. An operator reads this text when they ask who holds what, so a digest would be shorter and would tell them nothing; mail content in it would make the lease table a second uncontrolled copy of personal data.

Fields

MaximumLength

The greatest length a scope may have, which bounds the key column it is stored in.

Properties

Value

Gets the text one unit of work is held under.

Methods

Create(string)

Creates a scope from the key the work's own progress is recorded under.

ToString()

Returns a string that represents the current object.