Table of Contents

Struct NotificationDeduplicationKey

Namespace
MailFathom.Domain.Notifications
Assembly
MailFathom.Domain.dll

Names the condition a notification was raised for, so raising it again while it is unread says nothing twice.

public readonly record struct NotificationDeduplicationKey : IEquatable<NotificationDeduplicationKey>
Implements
Inherited Members

Remarks

It is the condition rather than the occurrence, which is the whole of the deduplication rule: an account whose credential is refused is refused again on every run until somebody acts, and a person who has not read the first statement gains nothing from forty more. Once the statement has been read the key is free again, so the same condition arising later is said again rather than suppressed forever.

It is MailFathom's own name for the condition and never anything read from mail: an account identifier and a fixed word for what happened are what compose one, so the key carries no personal data beyond whose deployment it belongs to.

Fields

MaximumLength

The longest key stored, which is generous for an account identifier and a fixed word.

Properties

IsSpecified

Gets whether this key names a condition.

Value

Gets the key text.

Methods

Create(string)

Creates a deduplication key from the condition's own name.

For(string, string)

Composes a key from the name of a condition and the thing it is about.

ToString()

Returns the fully qualified type name of this instance.