Table of Contents

Constructor UnlinkedStoredFileSweep

Namespace
MailFathom.Application.StoredFiles
Assembly
MailFathom.Application.dll

Initializes the sweep.

public UnlinkedStoredFileSweep(AccessAuthorization authorization, IStoredFileStore files, IUserRecordFileLinks links, IWorkLeaseRunner leases, TimeProvider timeProvider)

Parameters

authorization AccessAuthorization

Answers which principal reached this use case.

files IStoredFileStore

Names the candidates and removes what nothing links to.

links IUserRecordFileLinks

Reads which files each candidate's owner links to.

leases IWorkLeaseRunner

Holds the sweep's scope for the length of one run.

timeProvider TimeProvider

Reads the instant the age floor is measured from.

Exceptions

ArgumentNullException

Thrown when an argument is null.