コード例 #1
0
        public static IMvcBuilder AddMvcEnhancedProblemDetailsClientErrorFactory(this IMvcBuilder builder, Action <EnhancedClientErrorFactoryOptions> setupAction)
        {
            var services = builder.Services;

            builder.AddMvcEnhancedProblemDetailsClientErrorFactory();
            services.Configure(setupAction);

            return(builder);
        }