Table of Contents

Interface IUserProvisioning

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

Gives a user the row the mail graph hangs on, and keeps the label on it the one they were recorded under.

public interface IUserProvisioning

Remarks

The envelope is all this writes: the row exists because mailbox_accounts.UserId is a foreign key and the integrity of the mail graph is relational, and the document column stays the empty object it was provisioned with until a write to the user's record fills it.

Both operations are idempotent, because two writers may reach one row at once and the one that lost has to be answered with what the deployment holds rather than with a failure. Provisioning a user the deployment already holds writes nothing, and relabelling one already carrying the label writes nothing.

Methods

ProvisionAsync(UserId, string, Guid?, CancellationToken)

Records a user this deployment did not hold, under the identifier they are declared with.

RelabelAsync(UserId, string, CancellationToken)

Puts the label a declaration now carries onto the row of a user this deployment already holds.