Esempio n. 1
0
 public Pipeline(IReadOnlyCollection <Type> factAccessorTypes, IReadOnlyCollection <Type> aggregateAccessorTypes, IReadOnlyCollection <Type> messageAccessorTypes, IEqualityComparerFactory equalityComparerFactory, MappingSchema webAppMappingSchema, IDataConnectionProvider connectionProvider)
 {
     _factAccessorTypes       = factAccessorTypes;
     _aggregateAccessorTypes  = aggregateAccessorTypes;
     _messageAccessorTypes    = messageAccessorTypes;
     _equalityComparerFactory = equalityComparerFactory;
     _webAppMappingSchema     = webAppMappingSchema;
     _connectionProvider      = connectionProvider;
     _strategy = new OverOptimizedPipelineStrategy(); // new OptimizedPipelineStrategy();
 }
Esempio n. 2
0
        public PersistentTableStoreFactory(IEqualityComparerFactory equalityComparerFactory,
                                           MappingSchema webAppMappingSchema, IDataConnectionProvider connectionProvider)
        {
            _equalityComparerFactory = equalityComparerFactory;

            _connection = connectionProvider.CreateVrConnection()
                          .AddMappingSchema(webAppMappingSchema);

            // чтобы параллельные запуски single-проверок не накладывали блокировки на webapp-таблицы и не ждали друг друга
            // запускаем single-проверки в транзакции с режимом snapshot, который не накладывает никаких блокировок
            _connection.BeginTransaction(System.Data.IsolationLevel.Snapshot);
        }
Esempio n. 3
0
 /// <summary>
 /// Creates a new DataStoreBase using the specified Connection Provider and Connection String Manager.
 /// </summary>
 /// <param name="provider">The provider to use to retrieve an instance of an IDataConnection / TConnection.</param>
 /// <param name="connectionStringManager">The connection string manager to use to convert the ConnectionString to an actual connection string.</param>
 protected DataStoreBase(IDataConnectionProvider <TConnection> provider, IConnectionStringManager connectionStringManager)
 {
     _provider = provider;
     _connectionStringManager = connectionStringManager;
 }
 public PipelineFactory(IDataConnectionProvider connectionProvider)
 {
     _connectionProvider = connectionProvider;
 }
 public VersioningService(IDataConnectionProvider connectionProvider, KafkaMessageFlowInfoProvider kafkaMessageFlowInfoProvider)
 {
     _connectionProvider           = connectionProvider;
     _kafkaMessageFlowInfoProvider = kafkaMessageFlowInfoProvider;
 }
Esempio n. 6
0
 public NameResolvingService(IDataConnectionProvider connectionProvider, ITenantProvider tenantProvider)
 {
     _connectionProvider = connectionProvider;
     _tenantProvider     = tenantProvider;
 }
 public ValidationResultRepositiory(IDataConnectionProvider connectionProvider)
 {
     _connectionProvider = connectionProvider;
 }