Table of Contents

Class UserRoleRemovedEvent

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

Integration event raised when a role is removed from a user.

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

Constructors

UserRoleRemovedEvent(string, string, string, string, DateTimeOffset, string?)

Integration event raised when a role is removed from a user.

public UserRoleRemovedEvent(string UserId, string Email, string RoleId, string RoleName, DateTimeOffset RemovedAt, string? RemovedBy)

Parameters

UserId string

The unique identifier of the user.

Email string

The user's email address.

RoleId string

The identifier of the removed role.

RoleName string

The name of the removed role.

RemovedAt DateTimeOffset

The timestamp when the role was removed.

RemovedBy string

The identifier of the user who removed the role.

Properties

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

RemovedAt

The timestamp when the role was removed.

public DateTimeOffset RemovedAt { get; init; }

Property Value

DateTimeOffset

RemovedBy

The identifier of the user who removed the role.

public string? RemovedBy { get; init; }

Property Value

string

RoleId

The identifier of the removed role.

public string RoleId { get; init; }

Property Value

string

RoleName

The name of the removed role.

public string RoleName { get; init; }

Property Value

string

UserId

The unique identifier of the user.

public string UserId { get; init; }

Property Value

string