Class UserDeletedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a user is deleted from the identity system.
public sealed record UserDeletedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<UserDeletedEvent>
- Inheritance
-
UserDeletedEvent
- Implements
- Inherited Members
Constructors
UserDeletedEvent(string, string, DateTimeOffset, bool)
Integration event raised when a user is deleted from the identity system.
public UserDeletedEvent(string UserId, string Email, DateTimeOffset DeletedAt, bool IsSoftDelete)
Parameters
UserIdstringThe unique identifier of the user.
EmailstringThe user's email address.
DeletedAtDateTimeOffsetThe timestamp when the user was deleted.
IsSoftDeleteboolWhether this is a soft delete (deactivation) or hard delete.
Properties
DeletedAt
The timestamp when the user was deleted.
public DateTimeOffset DeletedAt { get; init; }
Property Value
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
IsSoftDelete
Whether this is a soft delete (deactivation) or hard delete.
public bool IsSoftDelete { get; init; }
Property Value
UserId
The unique identifier of the user.
public string UserId { get; init; }