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
releaseStoreIRetainedContentReleaseStoreCounts what is retained, and frees a bounded batch of it.
contentStoreIStoredContentMoveStoreCounts what the database still owns, which is what a release is refused for.
telemetryIRetainedContentReleaseTelemetryPublishes what was freed.
optionsRetainedContentReleaseOptionsBounds one batch, and holds a copy for the configured safety interval.
timeProviderTimeProviderTurns the safety interval into the cutoff a batch is selected by.
authorizationAccessAuthorizationAnswers which principal reached this use case.
Exceptions
- ArgumentNullException
Thrown when an argument is null.