Table of Contents

Method ReadAsync

Namespace
MailFathom.Application.Emails.Embeddings.Administration
Assembly
MailFathom.Application.dll

ReadAsync(EmbeddingProfileIdentity?, CancellationToken)

Reads where semantic search stands on this instance.

public Task<EmbeddingStatus> ReadAsync(EmbeddingProfileIdentity? declared, CancellationToken cancellationToken)

Parameters

declared EmbeddingProfileIdentity

The geometry configuration declares, or null where it declares none.

cancellationToken CancellationToken

Cancels the reads.

Returns

Task<EmbeddingStatus>

The status.

Remarks

An instance that has activated nothing answers with both generations absent and the rest present, which is the supported deployment that serves lexical search rather than a failure to report on.

What it reports is this deployment's own state and no mail, which is the grant it asks for. It asks here rather than only at the route, so a second entrypoint cannot publish what a provider costs this deployment by reaching the use case without passing a filter.

Exceptions

PrincipalNotAuthorizedException

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

OperationCanceledException

Thrown when the caller cancels.