public void Initialize(ConfigSettings settings) { _storage = new MySqlInventoryStorage(settings.InventorySource); // ProviderRegistry.Instance.RegisterInterface<IInventoryStoragePlugin>(this); _storageSelector = new InventoryProviderSelector(settings.CoreConnectionString, _storage); ProviderRegistry.Instance.RegisterInterface <IInventoryProviderSelector>(_storageSelector); }
public InventoryProviderSelector(string coreConnString, MySqlInventoryStorage storage) { _storage = storage; _checkedStorage = new CheckedInventoryStorage(_storage); }