Table of Contents

Method FindAsync

Namespace
MailFathom.Application.Access.Sessions
Assembly
MailFathom.Application.dll

FindAsync(string, CancellationToken)

Reports what the deployment holds under one identifier, without judging it.

Task<HeldClientSession?> FindAsync(string identifier, CancellationToken cancellationToken)

Parameters

identifier string

The public half of a presented token.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<HeldClientSession>

The session, or null where the deployment holds none under that identifier.

Remarks

The one operation on the request path, and one indexed read by the key. Nothing caches it, because a cached session is a revoked session that goes on working for the cache's own window on every replica that had already read it.

Exceptions

ClientSessionStoreUnavailableException

Thrown when the sessions could not be reached, which the caller answers as unavailable rather than as unauthenticated.