Class TenantUserAddedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a user is added to a tenant.
public sealed record TenantUserAddedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<TenantUserAddedEvent>
- Inheritance
-
TenantUserAddedEvent
- Implements
- Inherited Members
Constructors
TenantUserAddedEvent(string, string, string, string, DateTimeOffset, string?)
Integration event raised when a user is added to a tenant.
public TenantUserAddedEvent(string TenantId, string UserId, string Email, string Role, DateTimeOffset AddedAt, string? AddedBy)
Parameters
TenantIdstringThe unique identifier of the tenant.
UserIdstringThe unique identifier of the user.
EmailstringThe user's email address.
RolestringThe role assigned to the user within the tenant.
AddedAtDateTimeOffsetThe timestamp when the user was added.
AddedBystringThe identifier of the user who added this user.
Properties
AddedAt
The timestamp when the user was added.
public DateTimeOffset AddedAt { get; init; }
Property Value
AddedBy
The identifier of the user who added this user.
public string? AddedBy { 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
Role
The role assigned to the user within the tenant.
public string Role { get; init; }
Property Value
UserId
The unique identifier of the user.
public string UserId { get; init; }