示例#1
0
        public static IApplicationBuilder AddSwagger(this IApplicationBuilder app)
        {
            SwaggerConfig.ConfigureApplication(app);

            return(app);
        }
示例#2
0
        public static IServiceCollection AddSwagger(this IServiceCollection services)
        {
            SwaggerConfig.ConfigServices(services);

            return(services);
        }