Constructor UnlinkedStoredFileSweep
- Namespace
- MailFathom.Application.StoredFiles
- Assembly
- MailFathom.Application.dll
UnlinkedStoredFileSweep(AccessAuthorization, IStoredFileStore, IUserRecordFileLinks, IWorkLeaseRunner, TimeProvider)
Initializes the sweep.
public UnlinkedStoredFileSweep(AccessAuthorization authorization, IStoredFileStore files, IUserRecordFileLinks links, IWorkLeaseRunner leases, TimeProvider timeProvider)
Parameters
authorizationAccessAuthorizationAnswers which principal reached this use case.
filesIStoredFileStoreNames the candidates and removes what nothing links to.
linksIUserRecordFileLinksReads which files each candidate's owner links to.
leasesIWorkLeaseRunnerHolds the sweep's scope for the length of one run.
timeProviderTimeProviderReads the instant the age floor is measured from.
Exceptions
- ArgumentNullException
Thrown when an argument is null.