Table of Contents

Method UseAccountSettingsAsync

Namespace
MailFathom.Infrastructure.Mail
Assembly
MailFathom.Infrastructure.dll

UseAccountSettingsAsync(MailAccountId, CancellationToken)

Prepares the scope this instance belongs to with one account, before anything in it reads that account's settings.

Task<bool> UseAccountSettingsAsync(MailAccountId account, CancellationToken cancellationToken)

Parameters

account MailAccountId

The account the scope's work is for.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<bool>

true once the scope holds the account; false when the account is not served, which leaves the scope holding none.