Constructor ContactCollectionRun
- Namespace
- MailFathom.Application.Contacts.Collection
- Assembly
- MailFathom.Application.dll
ContactCollectionRun(MailAccountId, MailFolderSpecialUse?, ContactCollectionBudget)
What one synchronization run of one folder collects under.
public ContactCollectionRun(MailAccountId Account, MailFolderSpecialUse? FolderRole, ContactCollectionBudget Budget)
Parameters
AccountMailAccountIdThe account being synchronized, by its generated identifier, which is what a read of its mail narrows on.
FolderRoleMailFolderSpecialUse?The role the folder plays, or null when configuration gave it none.
BudgetContactCollectionBudgetHow many contacts this run may still record.
Remarks
The three are carried together because none answers anything on its own: the account decides whose settings are read and whose correspondents the addresses are recorded as, the role decides which header of a message is read, and the budget decides how much of what is read may be written. All three are properties of the run rather than of the message that reached it, which is why the account is here rather than taken from the message — a message reached in one account's run is that account's correspondence whatever occurrence identity it carries. Opening one per run is also what makes the bound the run's — a value built per message would bound nothing.