Class MailFolderResolver
- Namespace
- MailFathom.Application.Folders
- Assembly
- MailFathom.Application.dll
Turns a configured alias into the durable binding synchronization reads under.
public sealed class MailFolderResolver
- Inheritance
-
MailFolderResolver
- Inherited Members
Remarks
Resolution runs before every synchronization run rather than once, because the folder an alias names is the server's answer and the server is free to change it. The run that observes a different remote folder is also the run that starts its new generation, so no work is ever committed under a binding that has not been recorded.
Constructors
- MailFolderResolver(IRemoteFolderCatalog, IMailFolderResolutionStore, IMailFolderMappingChangeAuditor, IPersistenceSessionFactory, TimeProvider)
Initializes a new folder resolver.
Methods
- ResolveAsync(MailAccountId, MailFolderMapping, MailTransportSecurityPolicy, CancellationToken)
Resolves one configured alias against the folders its server currently advertises.