16 lines
421 B
C#
16 lines
421 B
C#
|
|
using EventFlow.Aggregates;
|
||
|
|
|
||
|
|
namespace Books.Api.Domain.ApiKeys.Events;
|
||
|
|
|
||
|
|
public class ApiKeyCreatedEvent(
|
||
|
|
string name,
|
||
|
|
string keyHash,
|
||
|
|
string companyId,
|
||
|
|
string createdBy) : AggregateEvent<ApiKeyAggregate, ApiKeyId>
|
||
|
|
{
|
||
|
|
public string Name { get; } = name;
|
||
|
|
public string KeyHash { get; } = keyHash;
|
||
|
|
public string CompanyId { get; } = companyId;
|
||
|
|
public string CreatedBy { get; } = createdBy;
|
||
|
|
}
|