Interface IClientPreferencesStore
- Namespace
- MailFathom.Application.Preferences
- Assembly
- MailFathom.Application.dll
Holds one person's client preferences, and hands them back to whichever machine they next sign in from.
public interface IClientPreferencesStore
Remarks
One read and one write, each for one user, so there is no shape here that touches two people's preferences and no query that could compose a roster out of them. Both are key lookups for that reason rather than for a plan's.
The write is last-write-wins and states no version. Two of one person's own devices disagreeing about a switch they both set is not a loss worth a conflict screen over a checkbox, and there is no third party whose change could be overwritten — the record's superseded refusal exists because an administrator writes that document too.
Methods
- ReadAsync(UserId, CancellationToken)
Reads what one person set about their own client.
- SaveAsync(UserId, ClientPreferences, CancellationToken)
Replaces what one person set about their own client.