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