private static IFluentCspOptions UseCspPluginTypes(this IFluentCspOptions configurer, string[] pluginTypes) { if (configurer == null) { throw new ArgumentNullException(nameof(configurer)); } if (!pluginTypes.Any()) { return(configurer); } configurer .PluginTypes(x => x.MediaTypes(pluginTypes)); return(configurer); }