Class EventStoreSeedingExtensions
- Namespace
- Cratis.Chronicle.Seeding
- Assembly
- Cratis.Chronicle.dll
Extensions for creating event-seeding buffers for an event store.
public static class EventStoreSeedingExtensions
- Inheritance
-
EventStoreSeedingExtensions
- Inherited Members
Methods
CreateEventSeeding(IEventStore)
Creates a new empty event-seeding buffer that uses the event store's existing connection and event types.
public static IEventSeeding CreateEventSeeding(this IEventStore eventStore)
Parameters
eventStoreIEventStoreThe event store to create a seeding buffer for.
Returns
- IEventSeeding
A new empty IEventSeeding buffer.
Remarks
The buffer exposed by Seeding retains its entries when registration fails so the same idempotent definitions can be retried. Use this method when the definitions themselves have been corrected and must be offered independently of that retained batch.
Exceptions
- CannotCreateEventSeeding
Thrown when the event store does not use Chronicle's event-seeding implementation.