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
ActUserCredentialActWhat was done.
CredentialIdGuidThe credential it was done to.
UserUserIdThe user the credential authenticates.
MethodUserCredentialMethod?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.
ActingAdministratorstringWhat the administrative surface admitted the caller as, which is a configured credential's own name rather than a person.
OccurredAtDateTimeOffsetWhen 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.