Skip to main content
Table of Contents

Interface IEvent

Namespace
Stratara.Abstractions.EventSourcing
Assembly
Stratara.Abstractions.dll

Materialised event with its envelope metadata. Returned by IEventMapperFactory when deserialising rows from the event stream.

public interface IEvent
Extension Methods

Properties

AggregateTypeName

Fully-qualified, version-independent type name of the owning aggregate.

string AggregateTypeName { get; }

Property Value

string

Data

The deserialised event payload.

object Data { get; }

Property Value

object

EventTypeName

Fully-qualified, version-independent type name of the event payload.

string EventTypeName { get; }

Property Value

string

Id

Unique id of this event (V7 GUID).

Guid Id { get; }

Property Value

Guid

StreamId

Id of the stream this event belongs to (= aggregate id).

Guid StreamId { get; }

Property Value

Guid

TenantId

Subject (data-owner) tenant id.

Guid TenantId { get; }

Property Value

Guid

UserId

Subject (data-owner) user id, or Empty if not user-scoped.

Guid UserId { get; }

Property Value

Guid

Version

The aggregate-relative version this event was appended at.

long Version { get; }

Property Value

long