Class LicenseCreatedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a license is created.
public sealed record LicenseCreatedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<LicenseCreatedEvent>
- Inheritance
-
LicenseCreatedEvent
- Implements
- Inherited Members
Constructors
LicenseCreatedEvent(string, string, string, string, string, DateTimeOffset?, int?)
Integration event raised when a license is created.
public LicenseCreatedEvent(string LicenseId, string LicenseKey, string CustomerId, string ProductId, string Status, DateTimeOffset? ExpiresAt, int? ActivationLimit)
Parameters
LicenseIdstringThe unique identifier of the license.
LicenseKeystringThe license key.
CustomerIdstringThe unique identifier of the customer.
ProductIdstringThe product identifier.
StatusstringThe license status.
ExpiresAtDateTimeOffset?The expiration date of the license, if applicable.
ActivationLimitint?The maximum number of activations allowed.
Properties
ActivationLimit
The maximum number of activations allowed.
public int? ActivationLimit { get; init; }
Property Value
- int?
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
ExpiresAt
The expiration date of the license, if applicable.
public DateTimeOffset? ExpiresAt { 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
ProductId
The product identifier.
public string ProductId { get; init; }
Property Value
Status
The license status.
public string Status { get; init; }