Skip to main content
Table of Contents

Struct EventSubject

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

Explicit Subject (data owner) for an event-source append. Used by AppendOnBehalfOfAsync<TAggregate>(Guid, object, EventSubject, CancellationToken) when the Subject is intentionally different from the calling SessionContext's Subject (PlatformAdmin cross-tenant flows, EventStoreMigration regeneration).

public readonly record struct EventSubject : IEquatable<EventSubject>
Implements
Inherited Members
Extension Methods

Constructors

EventSubject(Guid, Guid?)

Explicit Subject (data owner) for an event-source append. Used by AppendOnBehalfOfAsync<TAggregate>(Guid, object, EventSubject, CancellationToken) when the Subject is intentionally different from the calling SessionContext's Subject (PlatformAdmin cross-tenant flows, EventStoreMigration regeneration).

public EventSubject(Guid TenantId, Guid? UserId = null)

Parameters

TenantId Guid

The Subject tenant id.

UserId Guid?

Optional Subject user id — null when the aggregate isn't user-scoped.

Properties

TenantId

The Subject tenant id.

public Guid TenantId { get; init; }

Property Value

Guid

UserId

Optional Subject user id — null when the aggregate isn't user-scoped.

public Guid? UserId { get; init; }

Property Value

Guid?