Interface IUserEndpointSwitchStore
- Assembly
- MailFathom.Infrastructure.dll
Finds the users whose endpoint switches were written past the settings policy, and derives them again.
public interface IUserEndpointSwitchStore
Remarks
A user's row carries the two switches a request is admitted by, and a stamp saying which version of the record and which organization they were derived from. Every write of this build that derives them writes the stamp with them. A build that does not know settings policies writes neither half of the stamp, so the record it wrote, or the user it moved, is a row whose stamp no longer matches it: that is the whole of what tells such a row apart, and ADR 0037 § How a value resolves is where it is decided.
The two operations are apart because only the second is a write. Which rows trail is asked outside any transaction and is allowed to be out of date; what a row is derived from is read again inside the write, so nothing the first answer said is relied on beyond which user to look at.
Methods
- DeriveAgainAsync(UserId, Func<GovernedUserRecord, UserEndpointAccess?>, CancellationToken)
Derives one user's endpoint switches again and stamps their row, if its stamp still does not match it.
- ReadTrailingAsync(Guid?, int, CancellationToken)
Reads the users whose stamp does not match their row, in identifier order.