Ejemplo n.º 1
0
        public void Setup()
        {
            this.eventStorage = CreateEventStorage();
            this.eventStore = new EventStore(this.eventStorage, this.bus, this.serializer);

            this.OnSetUp();
        }
Ejemplo n.º 2
0
        public void Setup()
        {
            this.eventStorage = CreateEventStorage();
            this.eventStore   = new EventStore(this.eventStorage, this.bus, this.serializer);

            this.OnSetUp();
        }
Ejemplo n.º 3
0
 public EventStore(IEventStoreDb db,
                   IEventStoreBus bus,
                   IEventStoreSerializer serializer)
 {
     this.db         = db;
     this.bus        = bus;
     this.serializer = serializer;
 }
Ejemplo n.º 4
0
 public EventStore(IEventStoreDb db, 
                   IEventStoreBus bus,
                   IEventStoreSerializer serializer)
 {
     this.db = db;
     this.bus = bus;
     this.serializer = serializer;
 }
Ejemplo n.º 5
0
 public EventStore(IEventStoreDb db,
                   IEventStoreBus bus,
                   IEventStoreSerializer serializer,
                   ILoggerFactory loggerFactory)
 {
     this.db         = db;
     this.bus        = bus;
     this.serializer = serializer;
     this.logger     = loggerFactory.GetLogger(typeof(EventStore));
 }
        public StreamSubscriber(ILogger <StreamSubscriber> logger,
                                IEventStoreDb eventStoreDb,
                                IStreamManager streamManager,
                                IStreamHandler streamHandler)
        {
            _logger        = logger;
            _streamManager = streamManager;
            _streamHandler = streamHandler;

            _eventStoreClient = eventStoreDb.GetClient();
        }
Ejemplo n.º 7
0
 public DomainContext(IEventStoreDb eventStoreDb,
                      IEventStore eventStore,
                      IEventBus eventBus,
                      ICommandBus commandBus,
                      IEnumerable <IProcessor> processors,
                      ILoggerFactory loggerFactory,
                      IDependencyResolver resolver)
 {
     this.eventStoreDb  = eventStoreDb;
     this.eventStore    = eventStore;
     this.eventBus      = eventBus;
     this.commandBus    = commandBus;
     this.processors    = processors;
     this.loggerFactory = loggerFactory;
     this.resolver      = resolver;
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Configures the local EventStore, which should be used only for test and learning purposes.
 /// </summary>
 /// <returns>The current instance, to be used in a fluent manner</returns>
 public EventSourcingConfigurator UseLocalEventStore()
 {
     this.EventStoreDb = new LocalEventStore();
     return(this);
 }
Ejemplo n.º 9
0
 public EventsRepository(IEventStoreDb eventStoreDb, IEventStoreDbSerializer eventStoreDbSerializer)
 {
     _eventStoreDbSerializer = eventStoreDbSerializer;
     _eventStoreClient       = eventStoreDb.GetClient();
 }