Table of Contents

Method RunAsync

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

RunAsync(CancellationToken)

Runs one bounded sweep if this replica takes its lease.

public Task<int?> RunAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancels the claim and the run.

Returns

Task<int?>

How many files the run removed, or null when another replica holds the sweep.

Exceptions

PrincipalNotAuthorizedException

Thrown when anything but this deployment's own process reached the use case.