Class TeamConsent
- Namespace
- Tharga.Team
- Assembly
- Tharga.Team.dll
The one rule for which consent a team has in force. Every consent read goes through it.
public static class TeamConsent
- Inheritance
-
TeamConsent
- Inherited Members
Remarks
A team's stored consent can be temporary — set by an approved access request and due to return to what it was. Reading ConsentedRoles or ConsentAccessLevel directly would keep honouring it after it ran out. Resolving here instead is what makes expiry take effect without a background job: the claims builder, the API-key team context and every badge ask this, so the next read after expiry sees the previous consent.
Methods
Resolve(ITeam, DateTime)
The consent team has in force at utcNow.
public static ConsentInForce Resolve(ITeam team, DateTime utcNow)