Skip to main content
Table of Contents

Interface IAggregate

Namespace
Stratara.Abstractions.Domain
Assembly
Stratara.Abstractions.dll

Marker interface for event-sourced aggregates. Carries the aggregate's id — the stream id under which its events are persisted.

public interface IAggregate
Extension Methods

Remarks

Concrete aggregates implement this directly when they're tenant-agnostic (e.g. Customer, Tenant) or implement ITenantAggregate when they're owned by a tenant.

Properties

Id

The aggregate id. Equal to its event-stream id.

Guid Id { get; set; }

Property Value

Guid