随笔分类 - WebAPI
摘要:引言 Web.config 通过web.Release.config 和web.Debug.config文件来实现不同编译配置下生成不同的配置文件, 但有时为了区分appSettings节点的配置内容,我们会单独放到一个文件。 以便我们更好的查看,修改(维护),这样我们如何像Web.config 那样优雅的处理这种转换呢? 本文中提及的插件就是解决这个问题的 Vs 插件 ...
阅读全文
摘要:简单类型参数 Example 1: Sending a simple parameter in the Url [RoutePrefix("api/values")] public class ValuesController : ApiController { // http://localhost:49407/api/values/example1?id=2 [Route("exa...
阅读全文
摘要:WebAPI的Host OWIN IIS WebAPI 的handler和Filter有啥区别? WebAPI 常用 Filters Exception Filter Timer Filter Log Filter WebAPI 常用的模式 Repository UnitOfWork WebAPI IOC WebAPI 测试 We...
阅读全文
摘要:在IIS 10中启用CORS: IISExpress 通过IP地址访问 参考 Access IIS Express from another machine IIS Ex...
阅读全文