Table of Contents

Constructor UserCredentialChange

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

UserCredentialChange(UserCredentialAct, Guid, UserId, UserCredentialMethod?, string, DateTimeOffset)

One administrative change to the credentials a user holds.

public UserCredentialChange(UserCredentialAct Act, Guid CredentialId, UserId User, UserCredentialMethod? Method, string ActingAdministrator, DateTimeOffset OccurredAt)

Parameters

Act UserCredentialAct

What was done.

CredentialId Guid

The credential it was done to.

User UserId

The user the credential authenticates.

Method UserCredentialMethod?

How the credential is presented, which is what makes two records about one user readable apart, and null for the acts written against the identifier alone.

ActingAdministrator string

What the administrative surface admitted the caller as, which is a configured credential's own name rather than a person.

OccurredAt DateTimeOffset

When the change committed.

Remarks

Method is optional because three of the five acts are the same act whichever credential they reached: enabling one, disabling one, and deleting one are asked for by identifier and name no method. Carrying the unspecified UserCredentialMethod there instead would hand every sink a value whose published name throws and which no serializer will write, and it would do so after the store write had already committed.