Table of Contents

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

LicenseId string

The unique identifier of the license.

LicenseKey string

The license key.

CustomerId string

The unique identifier of the customer.

ProductId string

The product identifier.

Status string

The license status.

ExpiresAt DateTimeOffset?

The expiration date of the license, if applicable.

ActivationLimit int?

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

string

EventType

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

public override string EventType { get; }

Property Value

string

ExpiresAt

The expiration date of the license, if applicable.

public DateTimeOffset? ExpiresAt { get; init; }

Property Value

DateTimeOffset?

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

ProductId

The product identifier.

public string ProductId { get; init; }

Property Value

string

Status

The license status.

public string Status { get; init; }

Property Value

string