Table of Contents

Method ReadAsync

Namespace
MailFathom.Application.Synchronization.Administration
Assembly
MailFathom.Application.dll

ReadAsync(CancellationToken)

Reads what synchronization is doing across every configured account the caller's scope covers.

public Task<MailSynchronizationStatus> ReadAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancels the durable read.

Returns

Task<MailSynchronizationStatus>

The status.

Remarks

It refuses nothing about the deployment's own state. A deployment that configures no account, one that switched synchronization off, and one whose process has only just started are all supported states an operator reads here rather than failures to report on — what it does refuse is a caller whose grant does not carry the permission this report is published under. A caller holding it below the deployment is answered with the accounts their scope covers and nothing about the rest, as every listing is.

Exceptions

PrincipalNotAuthorizedException

Thrown when the use case was reached by anything but a caller granted AdminRead at some scope.

OperationCanceledException

Thrown when the caller cancels.