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 void Initialize(ConfigSettings settings) { AquilesHelper.Initialize(); _storage = new InventoryStorage(settings.InventoryCluster); _delayedMutationMgr = new DelayedMutationManager(); _delayedMutationMgr.Start(); _storage.DelayedMutationMgr = _delayedMutationMgr; if (settings.InventoryMigrationActive) { _legacyStorage = new LegacyMysqlInventoryStorage(settings.LegacyInventorySource); } _storageSelector = new CassandraMigrationProviderSelector(settings.InventoryMigrationActive, settings.CoreConnectionString, _storage, _legacyStorage); ProviderRegistry.Instance.RegisterInterface<IInventoryProviderSelector>(_storageSelector); }
public void Setup() { _storage = new InventoryStorage("inworldzbeta"); }