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
LicenseIdstringThe unique identifier of the license.
LicenseKeystringThe license key.
InstanceIdstringThe instance identifier that validated, if applicable.
IsValidboolWhether the license is valid.
ValidationMessagestringThe validation message.
ValidatedAtDateTimeOffsetThe 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
InstanceId
The instance identifier that validated, if applicable.
public string? InstanceId { get; init; }
Property Value
IsValid
Whether the license is valid.
public bool IsValid { get; init; }
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
ValidatedAt
The timestamp when the license was validated.
public DateTimeOffset ValidatedAt { get; init; }
Property Value
ValidationMessage
The validation message.
public string? ValidationMessage { get; init; }