2020年1月8日
摘要: 方法或者控制器加上属性 来源 https://www.cnblogs.com/hnsongbiao/p/9376076.html 阅读全文
posted @ 2020-01-08 16:16 苏上话 阅读(3074) 评论(0) 推荐(0)
摘要: 1、使用Nuget,对WebAPI项目添加swagger-net的引用 SwaggerConfig 配置如下 using System.Web.Http; using WebActivatorEx; using MebAPI; using System; using System.Collectio 阅读全文
posted @ 2020-01-08 16:12 苏上话 阅读(1871) 评论(0) 推荐(0)
摘要: 1、使用Nuget,对WebAPI项目添加WebApiThrottle的引用 2、进行注册,一般是在WebApiConfig的Register方法里添加,代码如下: 其中CustomThrottlingFilter是自己重写的ThrottlingFilter,也可以直接用默认配置。我自定义的Cust 阅读全文
posted @ 2020-01-08 16:06 苏上话 阅读(2937) 评论(0) 推荐(0)