Class TemporaryConsent
- Namespace
- Tharga.Team
- Assembly
- Tharga.Team.dll
A consent that runs out, and what the team's consent returns to when it does.
public sealed record TemporaryConsent : IEquatable<TemporaryConsent>
- Inheritance
-
TemporaryConsent
- Implements
- Inherited Members
Remarks
Recorded when a time-bound access request is approved. The consent in force is always read through Resolve(ITeam, DateTime), which applies this — nothing needs to run at the moment of expiry.
Properties
ExpiresAt
When the temporary consent stops applying (UTC).
public required DateTime ExpiresAt { get; init; }
Property Value
PreviousConsentAccessLevel
The consent level before the temporary consent.
public AccessLevel? PreviousConsentAccessLevel { get; init; }
Property Value
PreviousConsentedRoles
The consented roles before the temporary consent. Null or empty for none.
public string[] PreviousConsentedRoles { get; init; }
Property Value
- string[]