Class TenantCreatedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a tenant is created.
public sealed record TenantCreatedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<TenantCreatedEvent>
- Inheritance
-
TenantCreatedEvent
- Implements
- Inherited Members
Constructors
TenantCreatedEvent(string, string, string, string?, string?, bool)
Integration event raised when a tenant is created.
public TenantCreatedEvent(string TenantId, string Name, string Identifier, string? OwnerId, string? Plan, bool IsActive)
Parameters
TenantIdstringThe unique identifier of the tenant.
NamestringThe name of the tenant.
IdentifierstringThe unique identifier/slug for the tenant.
OwnerIdstringThe identifier of the tenant owner.
PlanstringThe subscription plan of the tenant.
IsActiveboolWhether the tenant is active.
Properties
EventType
Gets the name of the event type for serialization and routing purposes.
public override string EventType { get; }
Property Value
Identifier
The unique identifier/slug for the tenant.
public string Identifier { get; init; }
Property Value
IsActive
Whether the tenant is active.
public bool IsActive { get; init; }
Property Value
Name
The name of the tenant.
public string Name { get; init; }
Property Value
OwnerId
The identifier of the tenant owner.
public string? OwnerId { get; init; }
Property Value
Plan
The subscription plan of the tenant.
public string? Plan { get; init; }