Table of Contents

Method SetEnabledAsync

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

SetEnabledAsync(UserId, Guid, bool, CancellationToken)

Turns one credential on or off without changing what it is presented as.

Task<UserCredentialWriteOutcome> SetEnabledAsync(UserId user, Guid credentialId, bool enabled, CancellationToken cancellationToken)

Parameters

user UserId

The user the credential belongs to.

credentialId Guid

The credential being written.

enabled bool

Whether it should authenticate requests.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<UserCredentialWriteOutcome>

What the act did, or why it did nothing.

Exceptions

ArgumentException

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