Method AssessAsync
- Namespace
- MailFathom.Application.Emails.Embeddings.Administration
- Assembly
- MailFathom.Application.dll
AssessAsync(EmbeddingProfileIdentity, CancellationToken)
Reads what activating the declared geometry would do and what it would cost, writing nothing.
public Task<EmbeddingActivationAssessment> AssessAsync(EmbeddingProfileIdentity declared, CancellationToken cancellationToken)
Parameters
declaredEmbeddingProfileIdentityThe geometry configuration declares.
cancellationTokenCancellationTokenCancels the reads.
Returns
- Task<EmbeddingActivationAssessment>
The assessment an operator confirms against.
Remarks
Reading what an activation would cost is a report about this deployment, so it asks for the read permission and never for the one that starts a bill.
Exceptions
- ArgumentNullException
Thrown when
declaredis null.- PrincipalNotAuthorizedException
Thrown when the use case was reached by anything but a caller granted AdminRead.
- OperationCanceledException
Thrown when the caller cancels.