Table of Contents

Class TenantUserRoleChangedEvent

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

Integration event raised when a user's role is changed within a tenant.

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

Constructors

TenantUserRoleChangedEvent(string, string, string, string, string, DateTimeOffset, string?)

Integration event raised when a user's role is changed within a tenant.

public TenantUserRoleChangedEvent(string TenantId, string UserId, string Email, string OldRole, string NewRole, DateTimeOffset ChangedAt, string? ChangedBy)

Parameters

TenantId string

The unique identifier of the tenant.

UserId string

The unique identifier of the user.

Email string

The user's email address.

OldRole string

The previous role.

NewRole string

The new role.

ChangedAt DateTimeOffset

The timestamp when the role was changed.

ChangedBy string

The identifier of the user who changed the role.

Properties

ChangedAt

The timestamp when the role was changed.

public DateTimeOffset ChangedAt { get; init; }

Property Value

DateTimeOffset

ChangedBy

The identifier of the user who changed the role.

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

NewRole

The new role.

public string NewRole { get; init; }

Property Value

string

OldRole

The previous role.

public string OldRole { get; init; }

Property Value

string

UserId

The unique identifier of the user.

public string UserId { get; init; }

Property Value

string