public static EventSourceConfiguration SetEventstoreEventsource(this EventSourceConfiguration config, IEventStoreConnection connection) { EventStoreContext context = EventStoreContext.CreateDefault(config.Prefix, connection, config.Activator); var repo = new EventStoreRepository(context, config); config.DomainObjectRepository = repo; return(config); }
public EventStoreRepository(EventStoreContext context, EventSourceConfiguration configuration) : base(configuration) { this.context = context; }