Class TenantCreated
Tenant-aggregate creation event — opens a new tenant stream. The created tenant is the event's own data owner, so a tenant belongs to itself no matter which session performed the creation.
[ExcludeFromCodeCoverage]
public sealed record TenantCreated : IAggregateCreationEvent, IEquatable<TenantCreated>
- Inheritance
-
TenantCreated
- Implements
- Inherited Members
- Extension Methods
Constructors
TenantCreated(Guid, Guid, string, string, bool, DateTimeOffset)
Tenant-aggregate creation event — opens a new tenant stream. The created tenant is the event's own data owner, so a tenant belongs to itself no matter which session performed the creation.
public TenantCreated(Guid Id, Guid CustomerId, string Name, string DefaultLocale, bool IsActive, DateTimeOffset CreatedAt)
Parameters
IdGuidTenant identifier (also the event-stream id).
CustomerIdGuidCustomer that owns the new tenant.
NamestringHuman-readable tenant name.
DefaultLocalestringIETF BCP 47 default locale (e.g.
de-DE).IsActiveboolWhether the tenant is active immediately on creation.
CreatedAtDateTimeOffsetCreation timestamp.
Properties
CreatedAt
Creation timestamp.
public DateTimeOffset CreatedAt { get; init; }
Property Value
CustomerId
Customer that owns the new tenant.
public Guid CustomerId { get; init; }
Property Value
DefaultLocale
IETF BCP 47 default locale (e.g. de-DE).
public string DefaultLocale { get; init; }
Property Value
Id
Tenant identifier (also the event-stream id).
public Guid Id { get; init; }
Property Value
IsActive
Whether the tenant is active immediately on creation.
public bool IsActive { get; init; }
Property Value
Name
Human-readable tenant name.
public string Name { get; init; }