Table of Contents

Method RemoveAsync

Namespace
MailFathom.Infrastructure.Secrets.Database
Assembly
MailFathom.Infrastructure.dll

RemoveAsync(IPersistenceSession, DatabaseSecretReference, UserId, CancellationToken)

Stages removal of one stored secret only when it belongs to the stated user.

Task<bool> RemoveAsync(IPersistenceSession session, DatabaseSecretReference reference, UserId user, CancellationToken cancellationToken)

Parameters

session IPersistenceSession
reference DatabaseSecretReference
user UserId
cancellationToken CancellationToken

Returns

Task<bool>

true when the session held the matching row; false when the reference was absent or belonged to another user.