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
userUserIdThe user the credential belongs to.
credentialIdGuidThe credential being removed.
cancellationTokenCancellationTokenCancels 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
usernames nobody orcredentialIdis the empty identifier.