Method UnassignAsync
- Namespace
- MailFathom.Infrastructure.Persistence.Users
- Assembly
- MailFathom.Infrastructure.dll
UnassignAsync(Guid, UserId, CancellationToken)
Ends one user's assignment to an account, erasing the account and its mail when nobody else is assigned it.
Task<MailAccountUnassignment> UnassignAsync(Guid accountId, UserId user, CancellationToken cancellationToken)
Parameters
accountIdGuidThe account.
userUserIdThe user whose assignment ends.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<MailAccountUnassignment>
What the write did.