Constructor LocalMailFiler
- Namespace
- MailFathom.Application.Mail.Delivery.Filing
- Assembly
- MailFathom.Application.dll
LocalMailFiler(ILocalMailFolderStore, IEmailMetadataRepository, IEmailContentStore, IEmailMimeReader, IMailFolderMappingReader, IMailFolderResolutionStore, IOutgoingMailFilingPolicyReader, IOutgoingMailFilingStore, ClientSignals, TimeProvider)
Initializes the filer from the stores a filed message is written through.
public LocalMailFiler(ILocalMailFolderStore folders, IEmailMetadataRepository emails, IEmailContentStore contents, IEmailMimeReader mimeReader, IMailFolderMappingReader folderMappings, IMailFolderResolutionStore folderResolutions, IOutgoingMailFilingPolicyReader filingPolicies, IOutgoingMailFilingStore filings, ClientSignals signals, TimeProvider timeProvider)
Parameters
foldersILocalMailFolderStoreReads the account's phase and folders, and places and erases what is filed.
emailsIEmailMetadataRepositoryWrites the stored message.
contentsIEmailContentStorePlaces and saves the message's payload, and reads a send's.
mimeReaderIEmailMimeReaderReads the metadata the stored message is searched and threaded by.
folderMappingsIMailFolderMappingReaderFinds the source folder playing the role a message is filed under.
folderResolutionsIMailFolderResolutionStoreFinds that folder's current binding.
filingPoliciesIOutgoingMailFilingPolicyReaderAnswers whether an account files a sent copy at all.
filingsIOutgoingMailFilingStoreRecords why a sent copy could not be prepared.
signalsClientSignalsTells the account's clients what was filed, once it commits.
timeProviderTimeProviderSupplies the instant a supplied folder's identity is minted at.
Exceptions
- ArgumentNullException
Thrown when a collaborator is null.