Table of Contents

Interface IEventSeedingScopeBuilder

Namespace
Cratis.Chronicle.Seeding
Assembly
Cratis.Chronicle.dll

Defines a scoped builder for seeding events with namespace targeting.

public interface IEventSeedingScopeBuilder

Methods

ForEventSource(EventSourceId, IEnumerable<object>)

Seed events for a specific event source id with multiple event types.

IEventSeedingScopeBuilder ForEventSource(EventSourceId eventSourceId, IEnumerable<object> events)

Parameters

eventSourceId EventSourceId

The event source id to seed for.

events IEnumerable<object>

Collection of events to seed.

Returns

IEventSeedingScopeBuilder

The builder for continuation.

For<TEvent>(EventSourceId, IEnumerable<TEvent>)

Seed events for a specific event type and event source id.

IEventSeedingScopeBuilder For<TEvent>(EventSourceId eventSourceId, IEnumerable<TEvent> events) where TEvent : class

Parameters

eventSourceId EventSourceId

The event source id to seed for.

events IEnumerable<TEvent>

Collection of events to seed.

Returns

IEventSeedingScopeBuilder

The builder for continuation.

Type Parameters

TEvent

Type of event to seed.