Example #1
0
 public MsSqlConnection(
     IMsSqlConfiguration configuration,
     ITransientFaultHandler <ISqlErrorRetryStrategy> transientFaultHandler)
 {
     _configuration         = configuration;
     _transientFaultHandler = transientFaultHandler;
 }
Example #2
0
 public PostgreSqlConnection(
     ILog log,
     IPostgreSqlConfiguration configuration,
     IPostgreSqlConnectionFactory connectionFactory,
     ITransientFaultHandler <IPostgreSqlErrorRetryStrategy> transientFaultHandler)
     : base(log, configuration, connectionFactory, transientFaultHandler)
 {
 }
Example #3
0
 public SQLiteConnection(
     ILog log,
     ISQLiteConfiguration configuration,
     ISQLiteConnectionFactory connectionFactory,
     ITransientFaultHandler <ISQLiteErrorRetryStrategy> transientFaultHandler)
     : base(log, configuration, connectionFactory, transientFaultHandler)
 {
 }
 public SQLiteReadModelStore(
     ILog log,
     ISQLiteConnection connection,
     IReadModelSqlGenerator readModelSqlGenerator,
     IReadModelFactory <TReadModel> readModelFactory,
     ITransientFaultHandler <IOptimisticConcurrencyRetryStrategy> transientFaultHandler)
     : base(log, connection, readModelSqlGenerator, readModelFactory, transientFaultHandler)
 {
 }
Example #5
0
 public AggregateStore(IServiceProvider serviceProvider)
 {
     _serviceProvider           = serviceProvider;
     _logger                    = serviceProvider.GetRequiredService <ILogger <AggregateStore> >();
     _eventJsonSerializer       = serviceProvider.GetRequiredService <IEventJsonSerializer>();
     _persistenceFactory        = serviceProvider.GetRequiredService <IPersistenceFactory>();
     _aggregateFactory          = serviceProvider.GetRequiredService <IAggregateFactory>();
     _transientFaultHandler     = serviceProvider.GetRequiredService <ITransientFaultHandler <IOptimisticConcurrencyResilientStrategy> >();
     _cancellationConfiguration = serviceProvider.GetRequiredService <ICancellationConfiguration>();
 }
Example #6
0
 protected SqlConnection(
     ILog log,
     TConfiguration configuration,
     TConnectionFactory connectionFactory,
     ITransientFaultHandler <TRetryStrategy> transientFaultHandler)
 {
     ConnectionFactory = connectionFactory;
     Log                   = log;
     Configuration         = configuration;
     TransientFaultHandler = transientFaultHandler;
 }
Example #7
0
 public AggregateStore(
     IAggregateFactory aggregateFactory,
     IEventStore eventStore,
     ISnapshotStore snapshotStore,
     ITransientFaultHandler <IOptimisticConcurrencyRetryStrategy> transientFaultHandler)
 {
     _aggregateFactory      = aggregateFactory;
     _eventStore            = eventStore;
     _snapshotStore         = snapshotStore;
     _transientFaultHandler = transientFaultHandler;
 }
Example #8
0
 public ElasticsearchReadModelStore(
     ILog log,
     IElasticClient elasticClient,
     IReadModelDescriptionProvider readModelDescriptionProvider,
     ITransientFaultHandler <IOptimisticConcurrencyRetryStrategy> transientFaultHandler)
 {
     _log           = log;
     _elasticClient = elasticClient;
     _readModelDescriptionProvider = readModelDescriptionProvider;
     _transientFaultHandler        = transientFaultHandler;
 }
Example #9
0
 public RabbitMqPublisher(
     ILog log,
     IRabbitMqConnectionFactory connectionFactory,
     IRabbitMqConfiguration configuration,
     ITransientFaultHandler <IRabbitMqRetryStrategy> transientFaultHandler)
 {
     _log = log;
     _connectionFactory     = connectionFactory;
     _configuration         = configuration;
     _transientFaultHandler = transientFaultHandler;
 }
 public RabbitMqPublisher(
     ILog log,
     IRabbitMqConnectionFactory connectionFactory,
     IRabbitMqConfiguration configuration,
     ITransientFaultHandler<IRabbitMqRetryStrategy> transientFaultHandler)
 {
     _log = log;
     _connectionFactory = connectionFactory;
     _configuration = configuration;
     _transientFaultHandler = transientFaultHandler;
 }
 public MongoDbReadModelStore(
     ILog log,
     IMongoDatabase mongoDatabase,
     IReadModelDescriptionProvider readModelDescriptionProvider,
     ITransientFaultHandler <IOptimisticConcurrencyRetryStrategy> transientFaultHandler)
 {
     _log           = log;
     _mongoDatabase = mongoDatabase;
     _readModelDescriptionProvider = readModelDescriptionProvider;
     _transientFaultHandler        = transientFaultHandler;
 }
Example #12
0
 public CommandBus(
     ILog log,
     IResolver resolver,
     IEventStore eventStore,
     IDomainEventPublisher domainEventPublisher,
     ITransientFaultHandler <IOptimisticConcurrencyRetryStrategy> transientFaultHandler)
 {
     _log                   = log;
     _resolver              = resolver;
     _eventStore            = eventStore;
     _domainEventPublisher  = domainEventPublisher;
     _transientFaultHandler = transientFaultHandler;
 }
Example #13
0
 public MssqlReadModelStore(
     ILog log,
     IMsSqlConnection connection,
     IReadModelSqlGenerator readModelSqlGenerator,
     IReadModelFactory <TReadModel> readModelFactory,
     ITransientFaultHandler <IOptimisticConcurrencyRetryStrategy> transientFaultHandler)
     : base(log)
 {
     _connection            = connection;
     _readModelSqlGenerator = readModelSqlGenerator;
     _readModelFactory      = readModelFactory;
     _transientFaultHandler = transientFaultHandler;
 }
 public EntityFrameworkReadModelStore(
     IBulkOperationConfiguration bulkOperationConfiguration,
     ILog log,
     IReadModelFactory <TReadModel> readModelFactory,
     IDbContextProvider <TDbContext> contextProvider,
     ITransientFaultHandler <IOptimisticConcurrencyRetryStrategy> transientFaultHandler)
     : base(log)
 {
     _readModelFactory      = readModelFactory;
     _contextProvider       = contextProvider;
     _transientFaultHandler = transientFaultHandler;
     _deletionBatchSize     = bulkOperationConfiguration.DeletionBatchSize;
 }
 public RabbitMqSubscriber(
     ILog log,
     IRabbitMqConnectionFactory connectionFactory,
     IRabbitMqConfiguration configuration,
     ITransientFaultHandler <IRabbitMqRetryStrategy> transientFaultHandler,
     IRabbitMqMessageFactory rabbitMqMessageFactory
     )
 {
     _log = log;
     _connectionFactory      = connectionFactory;
     _configuration          = configuration;
     _transientFaultHandler  = transientFaultHandler;
     _rabbitMqMessageFactory = rabbitMqMessageFactory;
 }
Example #16
0
 public AggregateStore(
     ILog log,
     IResolver resolver,
     IAggregateFactory aggregateFactory,
     IEventStore eventStore,
     ISnapshotStore snapshotStore,
     ITransientFaultHandler <IOptimisticConcurrencyRetryStrategy> transientFaultHandler,
     ICancellationConfiguration cancellationConfiguration)
 {
     _log                       = log;
     _resolver                  = resolver;
     _aggregateFactory          = aggregateFactory;
     _eventStore                = eventStore;
     _snapshotStore             = snapshotStore;
     _transientFaultHandler     = transientFaultHandler;
     _cancellationConfiguration = cancellationConfiguration;
 }
Example #17
0
 public AggregateStore(
     ILogger <AggregateStore> logger,
     IServiceProvider serviceProvider,
     IAggregateFactory aggregateFactory,
     IEventStore eventStore,
     ISnapshotStore snapshotStore,
     ITransientFaultHandler <IOptimisticConcurrencyRetryStrategy> transientFaultHandler,
     ICancellationConfiguration cancellationConfiguration,
     IAggregateStoreResilienceStrategy aggregateStoreResilienceStrategy,
     IEventFlowConfiguration eventFlowConfiguration)
 {
     _logger                           = logger;
     _serviceProvider                  = serviceProvider;
     _aggregateFactory                 = aggregateFactory;
     _eventStore                       = eventStore;
     _snapshotStore                    = snapshotStore;
     _transientFaultHandler            = transientFaultHandler;
     _cancellationConfiguration        = cancellationConfiguration;
     _aggregateStoreResilienceStrategy = aggregateStoreResilienceStrategy;
     _eventFlowConfiguration           = eventFlowConfiguration;
 }