public EventSourcedAggregateRepository(IEventSerializer serializer, IEventStoreRepository repository, IAggregateManifestRepository manifest, INotificationEventBus eventBus)
 {
     this.serializer = serializer;
     this.repository = repository;
     this.eventBus   = eventBus;
     this.manifest   = manifest;
 }
Exemplo n.º 2
0
 public SnapshotAggregateRepository(ISnapshotRepository repository, IAggregateManifestRepository manifest, INotificationEventBus eventBus)
 {
     this.repository = repository;
     this.eventBus   = eventBus;
     this.manifest   = manifest;
     this.changes    = new Subject <IDataChangeEvent>();
 }
Exemplo n.º 3
0
        public DomainContext(IAggregateManifestRepository manifest, IEventStoreRepository eventStore, INotificationEventBus eventBus)
        {
            this.Manifest   = manifest;
            this.EventBus   = eventBus;
            this.EventStore = eventStore;

            this.registeredBuilders             = new Dictionary <Type, List <Func <IDomainContext, IReadModelBuilder> > >();
            this.registeredSnapshotRepositories = new Dictionary <Type, Func <IDomainContext, ISnapshotRepository> >();
        }
Exemplo n.º 4
0
 public TestDomainContext(SQLiteConnection connection, IAggregateManifestRepository manifest, IEventStoreRepository eventStore)
     : base(connection, manifest, eventStore)
 {
     this.EventSerializer = new DefaultEventSerializer <EventBase>();
 }
Exemplo n.º 5
0
 public SqlDomainContext(SQLiteConnection connection, IAggregateManifestRepository manifest, IEventStoreRepository eventStore, IDomainEventBus eventBus)
     : base(manifest, eventStore, eventBus)
 {
     this.Connection = connection;
 }
Exemplo n.º 6
0
 public SqlDomainContext(SQLiteConnection connection, IAggregateManifestRepository manifest, IEventStoreRepository eventStore) :
     base(manifest, eventStore)
 {
     this.Connection = connection;
 }