Table of Contents

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

UserId string

The unique identifier of the user.

Email string

The user's email address.

LoginAt DateTimeOffset

The timestamp of the login.

IpAddress string

The IP address from which the login occurred.

UserAgent string

The user agent string of the client.

AuthMethod string

The authentication method used.

Properties

AuthMethod

The authentication method used.

public string AuthMethod { get; init; }

Property Value

string

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

IpAddress

The IP address from which the login occurred.

public string? IpAddress { get; init; }

Property Value

string

LoginAt

The timestamp of the login.

public DateTimeOffset LoginAt { get; init; }

Property Value

DateTimeOffset

UserAgent

The user agent string of the client.

public string? UserAgent { get; init; }

Property Value

string

UserId

The unique identifier of the user.

public string UserId { get; init; }

Property Value

string