Table of Contents

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

TenantId string

The unique identifier of the tenant.

UserId string

The unique identifier of the user.

Email string

The user's email address.

Role string

The role assigned to the user within the tenant.

AddedAt DateTimeOffset

The timestamp when the user was added.

AddedBy string

The identifier of the user who added this user.

Properties

AddedAt

The timestamp when the user was added.

public DateTimeOffset AddedAt { get; init; }

Property Value

DateTimeOffset

AddedBy

The identifier of the user who added this user.

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

Role

The role assigned to the user within the tenant.

public string Role { get; init; }

Property Value

string

UserId

The unique identifier of the user.

public string UserId { get; init; }

Property Value

string