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
TenantIdstringThe unique identifier of the tenant.
NamestringThe name of the tenant.
DeletedAtDateTimeOffsetThe timestamp when the tenant was deleted.
IsSoftDeleteboolWhether this is a soft delete or hard delete.
Properties
DeletedAt
The timestamp when the tenant was deleted.
public DateTimeOffset DeletedAt { get; init; }
Property Value
EventType
Gets the name of the event type for serialization and routing purposes.
public override string EventType { get; }
Property Value
IsSoftDelete
Whether this is a soft delete or hard delete.
public bool IsSoftDelete { get; init; }
Property Value
Name
The name of the tenant.
public string Name { get; init; }