Class UserEmailChangedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a user's email is changed.
public sealed record UserEmailChangedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<UserEmailChangedEvent>
- Inheritance
-
UserEmailChangedEvent
- Implements
- Inherited Members
Constructors
UserEmailChangedEvent(string, string, string, bool)
Integration event raised when a user's email is changed.
public UserEmailChangedEvent(string UserId, string OldEmail, string NewEmail, bool IsNewEmailVerified)
Parameters
UserIdstringThe unique identifier of the user.
OldEmailstringThe previous email address.
NewEmailstringThe new email address.
IsNewEmailVerifiedboolWhether the new email is verified.
Properties
EventType
Gets the name of the event type for serialization and routing purposes.
public override string EventType { get; }
Property Value
IsNewEmailVerified
Whether the new email is verified.
public bool IsNewEmailVerified { get; init; }
Property Value
NewEmail
The new email address.
public string NewEmail { get; init; }
Property Value
OldEmail
The previous email address.
public string OldEmail { get; init; }
Property Value
UserId
The unique identifier of the user.
public string UserId { get; init; }