摘要: It looks like it is an extension method (in System.Net.Http.Formatting): HttpContentExtensions Class Update: PM> install-package Microsoft.AspNet.WebA 阅读全文
posted @ 2019-02-28 17:07 ChuckLu 阅读(580) 评论(0) 推荐(0) 编辑
摘要: 一个方法的参数是dynamic obj 方法内调用了obj.Header 但是外部传递进来的obj是null,然后就会报这个错。 阅读全文
posted @ 2019-02-28 17:03 ChuckLu 阅读(5795) 评论(0) 推荐(0) 编辑
摘要: When should I use OWIN Katana? 解答1 In asp.net WebApi v2, the OWIN pipeline becomes the default. It is eventually going to be the standard pipeline und 阅读全文
posted @ 2019-02-28 15:44 ChuckLu 阅读(253) 评论(0) 推荐(0) 编辑
摘要: Data caching per request in Owin application 解答1 Finally I found OwinRequestScopeContext. Very simple to use. In the Startup class: app.UseRequestScop 阅读全文
posted @ 2019-02-28 15:39 ChuckLu 阅读(316) 评论(0) 推荐(0) 编辑
摘要: Using HttpContext.Current in WebApi is dangerous because of async HttpContext.Current gets the current context by Thread (I looked into the implementa 阅读全文
posted @ 2019-02-28 15:35 ChuckLu 阅读(707) 评论(0) 推荐(0) 编辑
摘要: 类库Microsoft.Owin.Host.SystemWeb 扩展HttpContext以及HttpRequest ,新增了方法GetOwinContext 实际调用 阅读全文
posted @ 2019-02-28 15:10 ChuckLu 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 参考http://petstore.swagger.io 给controller加上description https://github.com/RSuter/NSwag/issues/1803 xml summary https://github.com/RSuter/NJsonSchema/wi 阅读全文
posted @ 2019-02-28 11:43 ChuckLu 阅读(2280) 评论(0) 推荐(0) 编辑
摘要: What is a 'workspace' in VS Code? You can save settings at the workspace level and you can open multiple folders in a workspace. If you want to do eit 阅读全文
posted @ 2019-02-28 09:32 ChuckLu 阅读(1944) 评论(0) 推荐(0) 编辑