Table of Contents

Struct UserErasureOutcome

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

What one attempt at erasing a user did, or the account that stopped it doing anything.

public readonly record struct UserErasureOutcome : IEquatable<UserErasureOutcome>
Implements
Inherited Members

Remarks

The refusal exists because what the caller stopped before it asked and what the transaction finds are two readings taken at different instants. Between them an assignment can end, leaving an account solely this user's that no hold covers, and a job already queued can be claimed. Either makes the deletion one that would commit against a live writer, and the answer to that is to write nothing and say which account it was — half an erasure cannot be undone, and a caller told which mailbox is still busy can ask again.

Constructors

UserErasureOutcome(bool, Guid?)

What one attempt at erasing a user did, or the account that stopped it doing anything.

Properties

Refused

Gets whether the erasure was abandoned with nothing written.

UnquiescedAccount

The mail account the erasure could not establish was quiesced for the whole of its transaction — either no hold covered it, or a job was found claimed for it under the lock — or null when every account it was about to delete was covered throughout. It is set only where nothing was written.

UserErased

Whether a user record was there to remove. False beside no refusal is the repeat of an erasure that already ran, which is the no-op the caller asked for rather than a failure.