Table of Contents

Method ExpiringAt

Namespace
MailFathom.Infrastructure.Secrets
Assembly
MailFathom.Infrastructure.dll

ExpiringAt(DateTimeOffset)

Creates a lifetime that ends at an absolute instant.

public static SecretLifetime ExpiringAt(DateTimeOffset expiration)

Parameters

expiration DateTimeOffset

The instant the secret stops being usable. It is stored in UTC whatever offset it arrives with.

Returns

SecretLifetime

The bounded lifetime.