コード例 #1
0
        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);
        }