Table of Contents

Class UserRoleAssignedEvent

Namespace
Compendium.Core.Domain.Events.Integration
Assembly
Compendium.Core.dll

Integration event raised when a role is assigned to a user.

public sealed record UserRoleAssignedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<UserRoleAssignedEvent>
Inheritance
UserRoleAssignedEvent
Implements
Inherited Members

Constructors

UserRoleAssignedEvent(string, string, string, string, DateTimeOffset, string?)

Integration event raised when a role is assigned to a user.

public UserRoleAssignedEvent(string UserId, string Email, string RoleId, string RoleName, DateTimeOffset AssignedAt, string? AssignedBy)

Parameters

UserId string

The unique identifier of the user.

Email string

The user's email address.

RoleId string

The identifier of the assigned role.

RoleName string

The name of the assigned role.

AssignedAt DateTimeOffset

The timestamp when the role was assigned.

AssignedBy string

The identifier of the user who assigned the role.

Properties

AssignedAt

The timestamp when the role was assigned.

public DateTimeOffset AssignedAt { get; init; }

Property Value

DateTimeOffset

AssignedBy

The identifier of the user who assigned the role.

public string? AssignedBy { 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

RoleId

The identifier of the assigned role.

public string RoleId { get; init; }

Property Value

string

RoleName

The name of the assigned role.

public string RoleName { get; init; }

Property Value

string

UserId

The unique identifier of the user.

public string UserId { get; init; }

Property Value

string