public AggregateStoreBase(IAggregateStoreDependencies dependencies) { EventDeserializer = dependencies.EventDeserializer; CosmosDBConnection = dependencies.CosmosDBConnection; CosmosDBConfigurations = dependencies.CosmosDBConfigurations; StreamNameProvider = dependencies.StreamNameProvider; }
public SnapshotableRootRepository(ISnapshotReader snapshotStore, IAggregateStore aggregateStore, IAggregateChangeTracker changeTracker, IStreamNameProvider streamNameProvider) { _snapshotStore = snapshotStore; _aggregateStore = aggregateStore; _changeTracker = changeTracker; _streamNameProvider = streamNameProvider; }
public CosmosDbConnection_Tests() { _cosmosDBConnection = The <ICosmosDBConnection>(); _aggregateRootRepository = The <IAggregateRootRepository <CarState> >(); _streamNameProvider = The <IStreamNameProvider>(); _fakeCarId = Guid.NewGuid().ToString(); SeedCar().ConfigureAwait(false) .GetAwaiter().GetResult(); }
public AggregateStoreDependencies(IEventDeserializer eventDeserializer, IEventStoreConnection eventStoreConnection, IEventStoreConfigurations eventStoreConfigurations, IStreamNameProvider streamNameProvider, IEventSerializer eventSerializer) { EventDeserializer = eventDeserializer; EventStoreConnection = eventStoreConnection; EventStoreConfigurations = eventStoreConfigurations; StreamNameProvider = streamNameProvider; EventSerializer = eventSerializer; }
public AggregateStoreDependencies(IEventSerializer eventSerializer, IEventDeserializer eventDeserializer, ICosmosDBConnection cosmosDBConnection, ICosmosDBConfigurations cosmosDBConfigurations, IStreamNameProvider streamNameProvider) { EventSerializer = eventSerializer; EventDeserializer = eventDeserializer; CosmosDBConnection = cosmosDBConnection; CosmosDBConfigurations = cosmosDBConfigurations; StreamNameProvider = streamNameProvider; }
public SnapshotEventStore(IAggregateRootRepository <TAggregateRoot> rootRepository, IAggregateChangeTracker changeTracker, IStreamNameProvider streamNameProvider, IEventStoreConnection connection, IEventSerializer eventSerializer, Func <ResolvedEvent, bool> strategy) { _rootRepository = rootRepository ?? throw new ArgumentNullException(nameof(rootRepository)); _changeTracker = changeTracker ?? throw new ArgumentNullException(nameof(changeTracker)); _streamNameProvider = streamNameProvider ?? throw new ArgumentNullException(nameof(streamNameProvider)); _connection = connection ?? throw new ArgumentNullException(nameof(connection)); _eventSerializer = eventSerializer ?? throw new ArgumentNullException(nameof(eventSerializer)); _strategy = strategy ?? throw new ArgumentNullException(nameof(strategy)); }
public AggregateWriter( IEventPersistenceClient eventPersistenceClient, IStreamNameProvider streamNameProvider) : base(eventPersistenceClient, streamNameProvider) { }
public ContactWriter(IEventPersistenceClient eventPersistenceClient, IStreamNameProvider streamNameProvider) : base(eventPersistenceClient, streamNameProvider) { }
public AggregateReader(IEventPersistenceClient eventPersistenceClient, IStreamNameProvider streamNameProvider) { _eventPersistenceClient = eventPersistenceClient; _streamNameProvider = streamNameProvider; }