Class LicenseActivatedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a license is activated.
public sealed record LicenseActivatedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<LicenseActivatedEvent>
- Inheritance
-
LicenseActivatedEvent
- Implements
- Inherited Members
Constructors
LicenseActivatedEvent(string, string, string, string?, int, int?, DateTimeOffset)
Integration event raised when a license is activated.
public LicenseActivatedEvent(string LicenseId, string LicenseKey, string InstanceId, string? InstanceName, int ActivationCount, int? ActivationLimit, DateTimeOffset ActivatedAt)
Parameters
LicenseIdstringThe unique identifier of the license.
LicenseKeystringThe license key.
InstanceIdstringThe instance identifier for this activation.
InstanceNamestringThe name of the activated instance.
ActivationCountintThe current number of activations.
ActivationLimitint?The maximum number of activations allowed.
ActivatedAtDateTimeOffsetThe timestamp when the license was activated.
Properties
ActivatedAt
The timestamp when the license was activated.
public DateTimeOffset ActivatedAt { get; init; }
Property Value
ActivationCount
The current number of activations.
public int ActivationCount { get; init; }
Property Value
ActivationLimit
The maximum number of activations allowed.
public int? ActivationLimit { get; init; }
Property Value
- int?
EventType
Gets the name of the event type for serialization and routing purposes.
public override string EventType { get; }
Property Value
InstanceId
The instance identifier for this activation.
public string InstanceId { get; init; }
Property Value
InstanceName
The name of the activated instance.
public string? InstanceName { 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; }