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