Interface IMailAccountSettingsScope
- Namespace
- MailFathom.Infrastructure.Mail
- Assembly
- MailFathom.Infrastructure.dll
Prepares a scope this boundary opens with the settings of the one account its work is for.
public interface IMailAccountSettingsScope
Remarks
A scope sees an account's settings only once it has been prepared with that account, because no snapshot holds every account a deployment serves. The host prepares the scopes it opens itself; this is how a scope opened here — a connection kept open across several operations — is prepared before anything in it reads the account's endpoint, credentials, or policy.
Methods
- UseAccountSettingsAsync(MailAccountId, CancellationToken)
Prepares the scope this instance belongs to with one account, before anything in it reads that account's settings.