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
LicenseIdstringThe unique identifier of the license.
LicenseKeystringThe license key.
CustomerIdstringThe unique identifier of the customer.
PreviousExpiresAtDateTimeOffsetThe previous expiration date.
NewExpiresAtDateTimeOffsetThe new expiration date.
Properties
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
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
NewExpiresAt
The new expiration date.
public DateTimeOffset NewExpiresAt { get; init; }
Property Value
PreviousExpiresAt
The previous expiration date.
public DateTimeOffset PreviousExpiresAt { get; init; }