Table of Contents

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

UserId string

The unique identifier of the user.

Email string

The user's email address.

Reason string

The reason for locking the account.

LockedAt DateTimeOffset

The timestamp when the account was locked.

LockedUntil DateTimeOffset?

The timestamp until which the account is locked, if temporary.

Properties

Email

The user's email address.

public string Email { get; init; }

Property Value

string

EventType

Gets the name of the event type for serialization and routing purposes.

public override string EventType { get; }

Property Value

string

LockedAt

The timestamp when the account was locked.

public DateTimeOffset LockedAt { get; init; }

Property Value

DateTimeOffset

LockedUntil

The timestamp until which the account is locked, if temporary.

public DateTimeOffset? LockedUntil { get; init; }

Property Value

DateTimeOffset?

Reason

The reason for locking the account.

public string Reason { get; init; }

Property Value

string

UserId

The unique identifier of the user.

public string UserId { get; init; }

Property Value

string