/// <summary> /// Export a set of types /// </summary> /// <param name="types">types to export</param> /// <returns></returns> public IExportTypeSetConfiguration Export(IEnumerable <Type> types) { if (types == null) { throw new ArgumentNullException(nameof(types)); } var configuration = _strategyCreator.GetTypeSetConfiguration(types); _exportStrategyProviders.Add((IExportStrategyProvider)configuration); return(configuration); }
/// <summary> /// Export a set of types /// </summary> /// <param name="types">types to export</param> /// <returns></returns> public IExportTypeSetConfiguration Export(IEnumerable <Type> types) { if (types == null) { throw new ArgumentNullException(nameof(types)); } ProcessCurrentProvider(); var configuration = _strategyCreator.GetTypeSetConfiguration(types); _currentProvider = (IExportStrategyProvider)configuration; return(configuration); }