Class LicenseRevokedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a license is revoked.
public sealed record LicenseRevokedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<LicenseRevokedEvent>
- Inheritance
-
LicenseRevokedEvent
- Implements
- Inherited Members
Constructors
LicenseRevokedEvent(string, string, string, string?, DateTimeOffset)
Integration event raised when a license is revoked.
public LicenseRevokedEvent(string LicenseId, string LicenseKey, string CustomerId, string? Reason, DateTimeOffset RevokedAt)
Parameters
LicenseIdstringThe unique identifier of the license.
LicenseKeystringThe license key.
CustomerIdstringThe unique identifier of the customer.
ReasonstringThe reason for revocation.
RevokedAtDateTimeOffsetThe timestamp when the license was revoked.
Properties
CustomerId
The unique identifier of the customer.
public string CustomerId { get; init; }
Property Value
EventType
Gets the name of the event type for serialization and routing purposes.
public override string EventType { get; }
Property Value
LicenseId
The unique identifier of the license.
public string LicenseId { get; init; }
Property Value
LicenseKey
The license key.
public string LicenseKey { get; init; }
Property Value
Reason
The reason for revocation.
public string? Reason { get; init; }
Property Value
RevokedAt
The timestamp when the license was revoked.
public DateTimeOffset RevokedAt { get; init; }