Constructor LocalMailCopier
- Namespace
- MailFathom.Application.Mail.Mutations.Local
- Assembly
- MailFathom.Application.dll
LocalMailCopier(IEmailMetadataRepository, IEmailContentStore, IEmailMimeReader, ILocalMailFolderStore)
Initializes the copier over the stores a copied message is written through.
public LocalMailCopier(IEmailMetadataRepository emails, IEmailContentStore contents, IEmailMimeReader mimeReader, ILocalMailFolderStore folders)
Parameters
emailsIEmailMetadataRepositoryWrites the copy's own stored message.
contentsIEmailContentStoreReads the copied message's payload, places the copy's, and saves it.
mimeReaderIEmailMimeReaderReads the metadata the copy is searched and threaded by.
foldersILocalMailFolderStoreFiles the copy into the local folder it was copied into.
Exceptions
- ArgumentNullException
Thrown when a collaborator is null.