Class UserLoggedInEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a user logs in.
public sealed record UserLoggedInEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<UserLoggedInEvent>
- Inheritance
-
UserLoggedInEvent
- Implements
- Inherited Members
Constructors
UserLoggedInEvent(string, string, DateTimeOffset, string?, string?, string)
Integration event raised when a user logs in.
public UserLoggedInEvent(string UserId, string Email, DateTimeOffset LoginAt, string? IpAddress, string? UserAgent, string AuthMethod)
Parameters
UserIdstringThe unique identifier of the user.
EmailstringThe user's email address.
LoginAtDateTimeOffsetThe timestamp of the login.
IpAddressstringThe IP address from which the login occurred.
UserAgentstringThe user agent string of the client.
AuthMethodstringThe authentication method used.
Properties
AuthMethod
The authentication method used.
public string AuthMethod { 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
IpAddress
The IP address from which the login occurred.
public string? IpAddress { get; init; }
Property Value
LoginAt
The timestamp of the login.
public DateTimeOffset LoginAt { get; init; }
Property Value
UserAgent
The user agent string of the client.
public string? UserAgent { get; init; }
Property Value
UserId
The unique identifier of the user.
public string UserId { get; init; }