Table of Contents

Class LicenseRenewedEvent

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

Integration event raised when a license is renewed.

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

Constructors

LicenseRenewedEvent(string, string, string, DateTimeOffset, DateTimeOffset)

Integration event raised when a license is renewed.

public LicenseRenewedEvent(string LicenseId, string LicenseKey, string CustomerId, DateTimeOffset PreviousExpiresAt, DateTimeOffset NewExpiresAt)

Parameters

LicenseId string

The unique identifier of the license.

LicenseKey string

The license key.

CustomerId string

The unique identifier of the customer.

PreviousExpiresAt DateTimeOffset

The previous expiration date.

NewExpiresAt DateTimeOffset

The new expiration date.

Properties

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

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

NewExpiresAt

The new expiration date.

public DateTimeOffset NewExpiresAt { get; init; }

Property Value

DateTimeOffset

PreviousExpiresAt

The previous expiration date.

public DateTimeOffset PreviousExpiresAt { get; init; }

Property Value

DateTimeOffset