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);
        }
Exemple #2
0
 public EventStoreRepository(EventStoreContext context, EventSourceConfiguration configuration) : base(configuration)
 {
     this.context = context;
 }