示例#1
0
        public CassandraMigrationProviderSelector(bool migrationActive,
                                                  string coreConnString,
                                                  InventoryStorage cassandraStorage, LegacyMysqlInventoryStorage legacyStorage)
        {
            _migrationActive  = migrationActive;
            _cassandraStorage = cassandraStorage;
            _legacyStorage    = legacyStorage;

            _checkedCassandraStorage = new CheckedInventoryStorage(_cassandraStorage);
            _checkedLegacyStorage    = new CheckedInventoryStorage(_legacyStorage);
            _migrationStatusChecker  = new MigrationStatusReader(coreConnString);
        }
        public CassandraMigrationProviderSelector(bool migrationActive,
            string coreConnString,
            InventoryStorage cassandraStorage, LegacyMysqlInventoryStorage legacyStorage)
        {
            _migrationActive = migrationActive;
            _cassandraStorage = cassandraStorage;
            _legacyStorage = legacyStorage;

            _checkedCassandraStorage = new CheckedInventoryStorage(_cassandraStorage);
            _checkedLegacyStorage = new CheckedInventoryStorage(_legacyStorage);
            _migrationStatusChecker = new MigrationStatusReader(coreConnString);
        }