Class UserCreatedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a user is created in the identity system.
public sealed record UserCreatedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<UserCreatedEvent>
- Inheritance
-
UserCreatedEvent
- Implements
- Inherited Members
Constructors
UserCreatedEvent(string, string, string?, string?, string?, bool)
Integration event raised when a user is created in the identity system.
public UserCreatedEvent(string UserId, string Email, string? Username, string? FirstName, string? LastName, bool IsEmailVerified)
Parameters
UserIdstringThe unique identifier of the user.
EmailstringThe user's email address.
UsernamestringThe user's username.
FirstNamestringThe user's first name.
LastNamestringThe user's last name.
IsEmailVerifiedboolWhether the user's email is verified.
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
FirstName
The user's first name.
public string? FirstName { get; init; }
Property Value
IsEmailVerified
Whether the user's email is verified.
public bool IsEmailVerified { get; init; }
Property Value
LastName
The user's last name.
public string? LastName { get; init; }
Property Value
UserId
The unique identifier of the user.
public string UserId { get; init; }
Property Value
Username
The user's username.
public string? Username { get; init; }