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
TenantIdstringThe unique identifier of the tenant.
UserIdstringThe unique identifier of the user.
EmailstringThe user's email address.
OldRolestringThe previous role.
NewRolestringThe new role.
ChangedAtDateTimeOffsetThe timestamp when the role was changed.
ChangedBystringThe identifier of the user who changed the role.
Properties
ChangedAt
The timestamp when the role was changed.
public DateTimeOffset ChangedAt { get; init; }
Property Value
ChangedBy
The identifier of the user who changed the role.
public string? ChangedBy { get; init; }
Property Value
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
NewRole
The new role.
public string NewRole { get; init; }
Property Value
OldRole
The previous role.
public string OldRole { get; init; }
Property Value
UserId
The unique identifier of the user.
public string UserId { get; init; }