Class UserLoggedOutEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a user logs out.
public sealed record UserLoggedOutEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<UserLoggedOutEvent>
- Inheritance
-
UserLoggedOutEvent
- Implements
- Inherited Members
Constructors
UserLoggedOutEvent(string, string, DateTimeOffset, string?)
Integration event raised when a user logs out.
public UserLoggedOutEvent(string UserId, string Email, DateTimeOffset LogoutAt, string? SessionId)
Parameters
UserIdstringThe unique identifier of the user.
EmailstringThe user's email address.
LogoutAtDateTimeOffsetThe timestamp of the logout.
SessionIdstringThe session identifier that was terminated.
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
LogoutAt
The timestamp of the logout.
public DateTimeOffset LogoutAt { get; init; }
Property Value
SessionId
The session identifier that was terminated.
public string? SessionId { get; init; }
Property Value
UserId
The unique identifier of the user.
public string UserId { get; init; }