Interface IAggregateCreationEvent
- Namespace
- Stratara.Abstractions.EventSourcing
- Assembly
- Stratara.Abstractions.dll
Marker on the first event of an aggregate's lifecycle that states the owner of the new stream.
public interface IAggregateCreationEvent
- Extension Methods
Remarks
A non-empty TenantId is recorded as the Subject (data-owner tenant) of the stream's first event, and every later event on the stream keeps it, whatever session appends to it. An aggregate created for another tenant than the session's states that tenant here: without the marker, or with an empty tenant, a new stream takes the tenant in the session.
Properties
TenantId
The Subject tenant id the new aggregate belongs to.
Guid TenantId { get; }