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);
        }
예제 #2
0
 public InventoryProviderSelector(string coreConnString, MySqlInventoryStorage storage)
 {
     _storage        = storage;
     _checkedStorage = new CheckedInventoryStorage(_storage);
 }