Table of Contents

Class LicenseValidatedEvent

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

Integration event raised when a license is validated.

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

Constructors

LicenseValidatedEvent(string, string, string?, bool, string?, DateTimeOffset)

Integration event raised when a license is validated.

public LicenseValidatedEvent(string LicenseId, string LicenseKey, string? InstanceId, bool IsValid, string? ValidationMessage, DateTimeOffset ValidatedAt)

Parameters

LicenseId string

The unique identifier of the license.

LicenseKey string

The license key.

InstanceId string

The instance identifier that validated, if applicable.

IsValid bool

Whether the license is valid.

ValidationMessage string

The validation message.

ValidatedAt DateTimeOffset

The timestamp when the license was validated.

Properties

EventType

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

public override string EventType { get; }

Property Value

string

InstanceId

The instance identifier that validated, if applicable.

public string? InstanceId { get; init; }

Property Value

string

IsValid

Whether the license is valid.

public bool IsValid { get; init; }

Property Value

bool

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

ValidatedAt

The timestamp when the license was validated.

public DateTimeOffset ValidatedAt { get; init; }

Property Value

DateTimeOffset

ValidationMessage

The validation message.

public string? ValidationMessage { get; init; }

Property Value

string