Skip to main content
Table of Contents

Class TenantCreated

Namespace
Stratara.Domain
Assembly
Stratara.Domain.dll

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

Id Guid

Tenant identifier (also the event-stream id).

CustomerId Guid

Customer that owns the new tenant.

Name string

Human-readable tenant name.

DefaultLocale string

IETF BCP 47 default locale (e.g. de-DE).

IsActive bool

Whether the tenant is active immediately on creation.

CreatedAt DateTimeOffset

Creation timestamp.

Properties

CreatedAt

Creation timestamp.

public DateTimeOffset CreatedAt { get; init; }

Property Value

DateTimeOffset

CustomerId

Customer that owns the new tenant.

public Guid CustomerId { get; init; }

Property Value

Guid

DefaultLocale

IETF BCP 47 default locale (e.g. de-DE).

public string DefaultLocale { get; init; }

Property Value

string

Id

Tenant identifier (also the event-stream id).

public Guid Id { get; init; }

Property Value

Guid

IsActive

Whether the tenant is active immediately on creation.

public bool IsActive { get; init; }

Property Value

bool

Name

Human-readable tenant name.

public string Name { get; init; }

Property Value

string