Table of Contents

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

LicenseId string

The unique identifier of the license.

LicenseKey string

The license key.

CustomerId string

The unique identifier of the customer.

Reason string

The reason for revocation.

RevokedAt DateTimeOffset

The timestamp when the license was revoked.

Properties

CustomerId

The unique identifier of the customer.

public string CustomerId { 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

LicenseId

The unique identifier of the license.

public string LicenseId { get; init; }

Property Value

string

LicenseKey

The license key.

public string LicenseKey { get; init; }

Property Value

string

Reason

The reason for revocation.

public string? Reason { get; init; }

Property Value

string

RevokedAt

The timestamp when the license was revoked.

public DateTimeOffset RevokedAt { get; init; }

Property Value

DateTimeOffset