Interface IClosesStreamBuilder<TEvent>

Namespace
Cratis.Chronicle.Events.Constraints
Assembly
Cratis.Chronicle.dll

Configures the scope closed by one event type.

public interface IClosesStreamBuilder<TEvent>

Type Parameters

TEvent

The closing event type.

Extension Methods

Methods

EventStreamIdFrom(Expression<Func<TEvent, object?>>)

Resolve the stream identifier from the payload instead of the append's stream metadata.

IClosesStreamBuilder<TEvent> EventStreamIdFrom(Expression<Func<TEvent, object?>> property)

Parameters

property Expression<Func<TEvent, object>>

The property carrying the stream identifier.

Returns

IClosesStreamBuilder<TEvent>

The builder for continuation.

PerEventSourceId()

Include the event source identifier.

IClosesStreamBuilder<TEvent> PerEventSourceId()

Returns

IClosesStreamBuilder<TEvent>

The builder for continuation.

PerEventSourceType()

Include the event source type.

IClosesStreamBuilder<TEvent> PerEventSourceType()

Returns

IClosesStreamBuilder<TEvent>

The builder for continuation.

PerEventStreamId()

Include the stream identifier.

IClosesStreamBuilder<TEvent> PerEventStreamId()

Returns

IClosesStreamBuilder<TEvent>

The builder for continuation.

PerEventStreamType()

Include the stream type.

IClosesStreamBuilder<TEvent> PerEventStreamType()

Returns

IClosesStreamBuilder<TEvent>

The builder for continuation.

ReopenedBy<TReopen>()

Declare an event type that reopens this constraint's exact scope.

IClosesStreamBuilder<TEvent> ReopenedBy<TReopen>()

Returns

IClosesStreamBuilder<TEvent>

The builder for continuation.

Type Parameters

TReopen

The reopening event type.