Table of Contents

Class TeamMailKeyRecord

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

A team's mail key as it is kept, retired keys included, so mail to a retired key is known to be retired rather than unknown.

public record TeamMailKeyRecord : IEquatable<TeamMailKeyRecord>
Inheritance
TeamMailKeyRecord
Implements
Inherited Members

Properties

CreatedAt

public required DateTime CreatedAt { get; init; }

Property Value

DateTime

Key

public required string Key { get; init; }

Property Value

string

RetiresAt

When a replaced key stops being accepted; null for the primary.

public DateTime? RetiresAt { get; init; }

Property Value

DateTime?

Role

public required MailKeyRole Role { get; init; }

Property Value

MailKeyRole

TeamKey

public required string TeamKey { get; init; }

Property Value

string

Methods

HasRetired(DateTime)

A replaced key stops being accepted at the moment it retires, not a moment after.

public bool HasRetired(DateTime now)

Parameters

now DateTime

Returns

bool