private void ProcessCurrentProvider() { if (_currentProvider != null) { _exportStrategyProviders.AddRange(_currentProvider.ProvideExportStrategies()); _currentProvider = null; } }
/// <summary> /// Add your own strategy provider, usually used by 3rd party libraries to provide their own custom export types /// </summary> /// <param name="strategyProvider">strategy provider</param> public void AddExportStrategyProvider(IExportStrategyProvider strategyProvider) { if (strategyProvider == null) { throw new ArgumentNullException(nameof(strategyProvider)); } _exportStrategyProviders.AddRange(strategyProvider.ProvideExportStrategies()); }