public EventSourcedAggregateRepository(IEventSerializer serializer, IEventStoreRepository repository, IAggregateManifestRepository manifest, INotificationEventBus eventBus) { this.serializer = serializer; this.repository = repository; this.eventBus = eventBus; this.manifest = manifest; }
public SnapshotAggregateRepository(ISnapshotRepository repository, IAggregateManifestRepository manifest, INotificationEventBus eventBus) { this.repository = repository; this.eventBus = eventBus; this.manifest = manifest; this.changes = new Subject <IDataChangeEvent>(); }
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> >(); }
public TestDomainContext(SQLiteConnection connection, IAggregateManifestRepository manifest, IEventStoreRepository eventStore) : base(connection, manifest, eventStore) { this.EventSerializer = new DefaultEventSerializer <EventBase>(); }
public SqlDomainContext(SQLiteConnection connection, IAggregateManifestRepository manifest, IEventStoreRepository eventStore, IDomainEventBus eventBus) : base(manifest, eventStore, eventBus) { this.Connection = connection; }
public SqlDomainContext(SQLiteConnection connection, IAggregateManifestRepository manifest, IEventStoreRepository eventStore) : base(manifest, eventStore) { this.Connection = connection; }