Table of Contents

Constructor RetainedContentRelease

Namespace
MailFathom.Application.EmailContent.Release
Assembly
MailFathom.Application.dll

RetainedContentRelease(IRetainedContentReleaseStore, IStoredContentMoveStore, IRetainedContentReleaseTelemetry, RetainedContentReleaseOptions, TimeProvider, AccessAuthorization)

Initializes the release.

public RetainedContentRelease(IRetainedContentReleaseStore releaseStore, IStoredContentMoveStore contentStore, IRetainedContentReleaseTelemetry telemetry, RetainedContentReleaseOptions options, TimeProvider timeProvider, AccessAuthorization authorization)

Parameters

releaseStore IRetainedContentReleaseStore

Counts what is retained, and frees a bounded batch of it.

contentStore IStoredContentMoveStore

Counts what the database still owns, which is what a release is refused for.

telemetry IRetainedContentReleaseTelemetry

Publishes what was freed.

options RetainedContentReleaseOptions

Bounds one batch, and holds a copy for the configured safety interval.

timeProvider TimeProvider

Turns the safety interval into the cutoff a batch is selected by.

authorization AccessAuthorization

Answers which principal reached this use case.

Exceptions

ArgumentNullException

Thrown when an argument is null.