Table of Contents

Class TenantDeletedEvent

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

Integration event raised when a tenant is deleted.

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

Constructors

TenantDeletedEvent(string, string, DateTimeOffset, bool)

Integration event raised when a tenant is deleted.

public TenantDeletedEvent(string TenantId, string Name, DateTimeOffset DeletedAt, bool IsSoftDelete)

Parameters

TenantId string

The unique identifier of the tenant.

Name string

The name of the tenant.

DeletedAt DateTimeOffset

The timestamp when the tenant was deleted.

IsSoftDelete bool

Whether this is a soft delete or hard delete.

Properties

DeletedAt

The timestamp when the tenant was deleted.

public DateTimeOffset DeletedAt { get; init; }

Property Value

DateTimeOffset

EventType

Gets the name of the event type for serialization and routing purposes.

public override string EventType { get; }

Property Value

string

IsSoftDelete

Whether this is a soft delete or hard delete.

public bool IsSoftDelete { get; init; }

Property Value

bool

Name

The name of the tenant.

public string Name { get; init; }

Property Value

string