Class UserLockedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a user's account is locked.
public sealed record UserLockedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<UserLockedEvent>
- Inheritance
-
UserLockedEvent
- Implements
- Inherited Members
Constructors
UserLockedEvent(string, string, string, DateTimeOffset, DateTimeOffset?)
Integration event raised when a user's account is locked.
public UserLockedEvent(string UserId, string Email, string Reason, DateTimeOffset LockedAt, DateTimeOffset? LockedUntil)
Parameters
UserIdstringThe unique identifier of the user.
EmailstringThe user's email address.
ReasonstringThe reason for locking the account.
LockedAtDateTimeOffsetThe timestamp when the account was locked.
LockedUntilDateTimeOffset?The timestamp until which the account is locked, if temporary.
Properties
The user's email address.
public string Email { get; init; }
Property Value
EventType
Gets the name of the event type for serialization and routing purposes.
public override string EventType { get; }
Property Value
LockedAt
The timestamp when the account was locked.
public DateTimeOffset LockedAt { get; init; }
Property Value
LockedUntil
The timestamp until which the account is locked, if temporary.
public DateTimeOffset? LockedUntil { get; init; }
Property Value
Reason
The reason for locking the account.
public string Reason { get; init; }
Property Value
UserId
The unique identifier of the user.
public string UserId { get; init; }