Table of Contents

Method DeleteAsync

Namespace
MailFathom.Application.Access.Credentials
Assembly
MailFathom.Application.dll

DeleteAsync(UserId, Guid, CancellationToken)

Removes one credential and the lookup it held.

Task<UserCredentialWriteOutcome> DeleteAsync(UserId user, Guid credentialId, CancellationToken cancellationToken)

Parameters

user UserId

The user the credential belongs to.

credentialId Guid

The credential being removed.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<UserCredentialWriteOutcome>

What the act did, or why it did nothing.

Remarks

Deleting frees the lookup for another credential, which is what separates it from disabling one: a disabled credential still holds its name.

Exceptions

ArgumentException

Thrown when user names nobody or credentialId is the empty identifier.