Table of Contents

Interface IEventSeedingBuilder

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

Defines a builder for seeding events in the event store.

public interface IEventSeedingBuilder

Methods

ForEventSource(EventSourceId, IEnumerable<object>)

Seed events for a specific event source id with multiple event types. By default, seed data applies to all namespaces globally.

IEventSeedingBuilder 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

IEventSeedingBuilder

The builder for continuation.

ForNamespace(EventStoreNamespaceName)

Configure seed data to be specific to a namespace.

IEventSeedingScopeBuilder ForNamespace(EventStoreNamespaceName @namespace)

Parameters

namespace EventStoreNamespaceName

The namespace to seed for.

Returns

IEventSeedingScopeBuilder

A scoped builder for namespace-specific seed data.

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

Seed events for a specific event type and event source id. By default, seed data applies to all namespaces globally.

IEventSeedingBuilder 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

IEventSeedingBuilder

The builder for continuation.

Type Parameters

TEvent

Type of event to seed.