Method GetSettingsAsync
- Namespace
- MailFathom.Infrastructure.Mail
- Assembly
- MailFathom.Infrastructure.dll
GetSettingsAsync(string, CancellationToken)
Gets connection settings for one local account identifier, resolving its password and trust anchor.
Task<ImapAccountSettings> GetSettingsAsync(string accountId, CancellationToken cancellationToken)
Parameters
accountIdstringThe local account identifier.
cancellationTokenCancellationTokenCancels the secret resolution.
Returns
- Task<ImapAccountSettings>
The settings, whose Material the caller owns and must dispose.
Remarks
The contract is asynchronous because secret resolution may reach a managed store; every scheme shipped today reads a local file or the environment block.