02 2019 档案

摘要: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 阅读(582) 评论(0) 推荐(0) 编辑
摘要:一个方法的参数是dynamic obj 方法内调用了obj.Header 但是外部传递进来的obj是null,然后就会报这个错。 阅读全文
posted @ 2019-02-28 17:03 ChuckLu 阅读(5988) 评论(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 阅读(256) 评论(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 阅读(318) 评论(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 阅读(710) 评论(0) 推荐(0) 编辑
摘要:类库Microsoft.Owin.Host.SystemWeb 扩展HttpContext以及HttpRequest ,新增了方法GetOwinContext 实际调用 阅读全文
posted @ 2019-02-28 15:10 ChuckLu 阅读(543) 评论(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 阅读(2286) 评论(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 阅读(1947) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/write_down/article/details/79114573 1. 知识预备要理解本文,需要掌握以下知识: https基本原理,包括证书分发和密钥协商等 [1];http代理和https代理的基本原理 [2];常用的本地http代理工具,如Fid 阅读全文
posted @ 2019-02-27 18:08 ChuckLu 阅读(1431) 评论(0) 推荐(1) 编辑
摘要:下载 https://jmeter.apache.org/download_jmeter.cgi 安装 无须安装,解压之后即可使用。 解压到C:\Program Files\apache-jmeter-5.1目录下(无法直接解压,先在D盘解压,然后复制到C盘里面)。 运行之后,一闪而过,没有出现UI 阅读全文
posted @ 2019-02-27 16:16 ChuckLu 阅读(2840) 评论(0) 推荐(0) 编辑
摘要:https://github.com/aspnet/AspNetWebStack/issues/235 https://stackoverflow.com/questions/5383310/catch-an-exception-thrown-by-an-async-void-method 如果异常 阅读全文
posted @ 2019-02-27 15:31 ChuckLu 阅读(191) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/21628467/order-of-execution-with-multiple-filters-in-web-api Some things to note here: Filters get executed in the 阅读全文
posted @ 2019-02-27 09:59 ChuckLu 阅读(472) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/felixnet/p/5689501.html https://blog.csdn.net/Vblegend_2013/article/details/83446229 https://stackoverflow.com/questions/27176 阅读全文
posted @ 2019-02-26 16:26 ChuckLu 阅读(1161) 评论(0) 推荐(0) 编辑
摘要:从安装的NuGet packages逆向找回去 <package id="Microsoft.AspNet.WebApi.Core" version="5.2.7" targetFramework="net472" /> 检查下载的dll,是System.Web.Http.dll https://w 阅读全文
posted @ 2019-02-26 15:46 ChuckLu 阅读(1621) 评论(0) 推荐(0) 编辑
摘要:https://support.mozilla.org/en-US/kb/password-manager-remember-delete-change-and-import You can easily manage the usernames and passwords that Firefox 阅读全文
posted @ 2019-02-26 15:27 ChuckLu 阅读(1342) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/reverse-string/ Write a function that reverses a string. The input string is given as an array of characters char[]. Do 阅读全文
posted @ 2019-02-26 13:00 ChuckLu 阅读(143) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/move-zeroes/ https://medium.com/@rebeccahezhang/leetcode-283-move-zeroes-6e6c23380998 Given an array nums, write a funct 阅读全文
posted @ 2019-02-25 19:04 ChuckLu 阅读(156) 评论(0) 推荐(0) 编辑
摘要:https://www.newtonsoft.com/json/help/html/DataContractAndDataMember.htm 如果class使用了DataContract,name没有使用DataMember的property就不解析 阅读全文
posted @ 2019-02-25 16:11 ChuckLu 阅读(224) 评论(0) 推荐(0) 编辑
摘要:Elegant Microsoft To-Do desktop app https://klaussinani.github.io/ao https://github.com/Zuntek/WeekToDoWeb/releases/download/v1.7.0/WeekToDo-Setup-1.7 阅读全文
posted @ 2019-02-25 15:28 ChuckLu 阅读(193) 评论(0) 推荐(0) 编辑
摘要:Execution Order for the ApiController Assuming the request goes into the ApiController scope, the operation order is as below: The ExecuteAsync method 阅读全文
posted @ 2019-02-25 14:53 ChuckLu 阅读(157) 评论(0) 推荐(0) 编辑
摘要:https://www.asp.net/media/4071077/aspnet-web-api-poster.pdf 1.You can host Web API inside IIS or inside your own process (self-hosting). 2.The HTTP re 阅读全文
posted @ 2019-02-25 14:45 ChuckLu 阅读(378) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/31321386/autofac-web-api-get-current-scope Unless you are using OWIN in your API, you should have your Autofac con 阅读全文
posted @ 2019-02-25 09:37 ChuckLu 阅读(1221) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/palindrome-linked-list/ https://www.geeksforgeeks.org/function-to-check-if-a-singly-linked-list-is-palindrome/ Given a s 阅读全文
posted @ 2019-02-25 01:26 ChuckLu 阅读(171) 评论(0) 推荐(0) 编辑
摘要:https://autofac.readthedocs.io/en/latest/glossary.html The goal of this page is to help keep documentation, discussions, and APIs consistent. Componen 阅读全文
posted @ 2019-02-23 14:29 ChuckLu 阅读(239) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/24188025/is-there-another-way-of-changing-database-instance-in-autofac WebAPI: Retrieve GET parameter from Control 阅读全文
posted @ 2019-02-22 18:39 ChuckLu 阅读(769) 评论(0) 推荐(0) 编辑
摘要:request POST https://hdgateway.zto.com/WayBill_GetDetail HTTP/1.1Host: hdgateway.zto.comConnection: keep-aliveContent-Length: 21Accept: */*Origin: htt 阅读全文
posted @ 2019-02-22 15:02 ChuckLu 阅读(2193) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/reverse-linked-list/ https://www.geeksforgeeks.org/reverse-a-linked-list/ /** * Definition for singly-linked list. * pub 阅读全文
posted @ 2019-02-22 13:16 ChuckLu 阅读(129) 评论(0) 推荐(0) 编辑
摘要:https://tortoisegit.org/docs/tortoisegit/tgit-dug-showlog.html Repository Demo https://github.com/ChuckGitMerge/TortoiseGit-Issue3333 一共有11个commits 1. 阅读全文
posted @ 2019-02-21 19:57 ChuckLu 阅读(275) 评论(0) 推荐(0) 编辑
摘要:SqlConnection.ConnectionTimeout https://docs.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlconnection.connectiontimeout?redirectedfrom=MSDN& 阅读全文
posted @ 2019-02-21 10:50 ChuckLu 阅读(970) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/aspnet/web-api/overview/formats-and-model-binding/model-validation-in-aspnet-web-api When a client sends data to your 阅读全文
posted @ 2019-02-20 18:36 ChuckLu 阅读(918) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/dotnet/api/system.environment.newline?view=netframework-4.7.2 https://stackoverflow.com/questions/1015766/difference- 阅读全文
posted @ 2019-02-20 15:25 ChuckLu 阅读(975) 评论(0) 推荐(0) 编辑
摘要:What's the difference between SDK and Runtime in .NET Core? Answer1 According to the .Net Core Guide, .NET Core is composed of the following items A . 阅读全文
posted @ 2019-02-20 13:26 ChuckLu 阅读(483) 评论(0) 推荐(0) 编辑
摘要:编译错误 Severity Code Description Project File Line Suppression StateError NETSDK1045 The current .NET SDK does not support targeting .NET Core 3.0. Eith 阅读全文
posted @ 2019-02-20 13:22 ChuckLu 阅读(4155) 评论(0) 推荐(1) 编辑
摘要:https://forum.piriform.com/topic/42073-ccleaner-starts-on-startup/ 在options-->setting里面选择开机不启动 在Options-->Monitoring中关闭所有的monitoring 阅读全文
posted @ 2019-02-20 09:22 ChuckLu 阅读(10379) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/fanyingnedu/article/details/78597207 Familiarity with Microsoft BI Stack - SSIS, SSAS, SSRS 数据库 Expert knowledge in SQL Server ( 阅读全文
posted @ 2019-02-19 22:07 ChuckLu 阅读(200) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/19984397/how-does-flyway-sort-version-numbers In one word: numerically. As would be expected for a number. In one 阅读全文
posted @ 2019-02-19 18:55 ChuckLu 阅读(231) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/dotnet/api/system.threading.thread.join?view=netframework-4.7.2 https://docs.microsoft.com/en-us/dotnet/api/system.th 阅读全文
posted @ 2019-02-19 16:41 ChuckLu 阅读(327) 评论(0) 推荐(0) 编辑
摘要:教程 http://bitoftech.net/2015/02/16/implement-oauth-json-web-tokens-authentication-in-asp-net-web-api-and-identity-2/ 源码 https://github.com/ChuckTest/A 阅读全文
posted @ 2019-02-19 13:55 ChuckLu 阅读(2803) 评论(0) 推荐(0) 编辑
摘要:https://www.yuque.com/fe9/basic/nruxq8#6c228def 语雀平台 制定一个 git commit 信息的提交规范是开发团队工作流必不可少的环节。试想一下,如果查看主分支上的历史库也就是你查看 git log 的时候,打印出来的信息杂乱无章的话,如果代码遇到问题 阅读全文
posted @ 2019-02-19 13:33 ChuckLu 阅读(5662) 评论(0) 推荐(0) 编辑
摘要:https://learning.getpostman.com/docs/postman/sending_api_requests/authorization/ Authorization The authorization process verifies whether you have per 阅读全文
posted @ 2019-02-19 11:11 ChuckLu 阅读(2222) 评论(0) 推荐(0) 编辑
摘要:在outlook中和inbox平级,有一个Conversation History 阅读全文
posted @ 2019-02-19 09:17 ChuckLu 阅读(3590) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/nuget/tools/cli-ref-sources https://gemfury.com/help/nuget-server/ C:\Windows\system32>nuget sources add -Name "rdc" 阅读全文
posted @ 2019-02-18 10:57 ChuckLu 阅读(692) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/15964935/get-nuget-exe-version-from-command-line Typing nuget help from the command line will in addition to the e 阅读全文
posted @ 2019-02-18 10:39 ChuckLu 阅读(463) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/nuget/consume-packages/package-restore#forcing-restore-from-package-sources By default, NuGet restore operations use 阅读全文
posted @ 2019-02-18 10:26 ChuckLu 阅读(217) 评论(0) 推荐(0) 编辑
摘要:https://support.office.com/en-us/article/print-a-sheet-or-workbook-0f104967-ebce-406f-9c37-d3ab0dc02137 Print several sheets at once adjacent 邻近的,毗连的 阅读全文
posted @ 2019-02-18 09:31 ChuckLu 阅读(226) 评论(0) 推荐(0) 编辑
摘要:Find-Package PM> Find-Package autofac https://docs.microsoft.com/en-us/nuget/tools/ps-ref-find-package Id Versions Description -- Autofac {4.9.0} Auto 阅读全文
posted @ 2019-02-15 17:44 ChuckLu 阅读(1503) 评论(0) 推荐(0) 编辑
摘要:用visual studio直接运行website项目 发现有一个conifg文件的配置,路径是solution同级目录下的.vs/config文件夹下有一个applicationhost.config文件。 阅读全文
posted @ 2019-02-15 16:22 ChuckLu 阅读(364) 评论(0) 推荐(0) 编辑
摘要:下载链接 https://www.microsoft.com/web/downloads/platform.aspx 默认的安装路径 C:\Program Files\Microsoft\Web Platform Installer 阅读全文
posted @ 2019-02-15 15:47 ChuckLu 阅读(1035) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.webcontrols.customvalidator?view=netframework-4.8 官方的demo使用的是ControlToValidate来关联被检查的控件。 OnS 阅读全文
posted @ 2019-02-14 16:00 ChuckLu 阅读(374) 评论(0) 推荐(0) 编辑
摘要:https://www.codeproject.com/Questions/412553/differences-between-onClick-and-onClientClick OnClick will work on server side , OnClientClick will execu 阅读全文
posted @ 2019-02-14 15:36 ChuckLu 阅读(422) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_environment_variables?view=powershell-6 查看所有的环境变量 Get-ChildIt 阅读全文
posted @ 2019-02-13 16:31 ChuckLu 阅读(5141) 评论(0) 推荐(0) 编辑
摘要:查看所有环境变量 set 查看某一个环境变量 C:\WINDOWS\system32>set no_proxyNO_PROXY=localhost,127.0.0.1,172.31.212.149 设置环境变量的值 As mentioned in other threads you can use 阅读全文
posted @ 2019-02-13 16:27 ChuckLu 阅读(6704) 评论(0) 推荐(0) 编辑
摘要:1)是的,获取access token的URL就是由TokenEndpointPath决定的。2)获取access token与Web API没有关系,Web API对应于OAuth中的Resource Server,而获取access token访问的是OAuth中的Authorization S 阅读全文
posted @ 2019-02-12 14:26 ChuckLu 阅读(359) 评论(0) 推荐(0) 编辑
摘要:http://www.tugberkugurlu.com/archive/simple-oauth-server-implementing-a-simple-oauth-server-with-katana-oauth-authorization-server-components-part-1 h 阅读全文
posted @ 2019-02-12 11:39 ChuckLu 阅读(1101) 评论(0) 推荐(0) 编辑
摘要:async await return Task https://stackoverflow.com/questions/25191512/async-await-return-task Can somebody explain what does this means into a synchron 阅读全文
posted @ 2019-02-12 10:11 ChuckLu 阅读(9129) 评论(0) 推荐(2) 编辑
摘要:http://bitoftech.net/2015/02/16/implement-oauth-json-web-tokens-authentication-in-asp-net-web-api-and-identity-2/ Currently our API doesn’t support au 阅读全文
posted @ 2019-02-11 16:39 ChuckLu 阅读(595) 评论(0) 推荐(0) 编辑
摘要:https://tools.ietf.org/html/rfc6750 1.2. Terminology Bearer Token A security token with the property that any party in possession of the token (a "bea 阅读全文
posted @ 2019-02-11 16:19 ChuckLu 阅读(435) 评论(0) 推荐(0) 编辑
摘要:http://bitoftech.net/2014/06/01/token-based-authentication-asp-net-web-api-2-owin-asp-net-identity/ 阅读全文
posted @ 2019-02-11 13:45 ChuckLu 阅读(212) 评论(0) 推荐(0) 编辑
摘要:http://bitoftech.net/2014/10/27/json-web-token-asp-net-web-api-2-jwt-owin-authorization-server/ In the previous post Decouple OWIN Authorization Serve 阅读全文
posted @ 2019-02-11 11:42 ChuckLu 阅读(604) 评论(0) 推荐(0) 编辑
摘要:In my previous article, What is OWIN? A Beginners Guide we learned the basics of OWIN and the benefits it brings to building web application in Asp.Ne 阅读全文
posted @ 2019-02-03 17:47 ChuckLu 阅读(141) 评论(0) 推荐(0) 编辑
摘要:http://www.codedigest.com/posts/1/what-is-owin-a-beginners-guide http://owin.org/html/spec/owin-1.0.1.html Introduction If you look at the current web 阅读全文
posted @ 2019-02-03 10:54 ChuckLu 阅读(195) 评论(0) 推荐(0) 编辑
摘要:Container With Most Water - LeetCode Container with Most Water - GeeksforGeeks Approach : This implies that if there was a better solution possible, i 阅读全文
posted @ 2019-02-02 17:12 ChuckLu 阅读(161) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/KimmyLee/p/6430474.html https://www.cnblogs.com/rocketRobin/p/9077523.html http://bitoftech.net/2015/03/31/asp-net-web-api-cla 阅读全文
posted @ 2019-02-01 18:48 ChuckLu 阅读(592) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/aspnet/aspnet/overview/owin-and-katana/owin-oauth-20-authorization-server The OAuth 2.0 framework enables a third-par 阅读全文
posted @ 2019-02-01 18:34 ChuckLu 阅读(513) 评论(0) 推荐(0) 编辑
摘要:https://www.oauth.com/oauth2-servers/access-tokens/password-grant/ The Password grant is used when the application exchanges the user’s username and p 阅读全文
posted @ 2019-02-01 17:23 ChuckLu 阅读(431) 评论(0) 推荐(0) 编辑
摘要:https://www.oauth.com/oauth2-servers/access-tokens/ Access tokens are the thing that applications use to make API requests on behalf of a user. The ac 阅读全文
posted @ 2019-02-01 17:19 ChuckLu 阅读(262) 评论(0) 推荐(0) 编辑
摘要:What I don't fully understand is the use of ClientId and Secret vs Username and Password. The code I pasted generates a token by username and password 阅读全文
posted @ 2019-02-01 17:08 ChuckLu 阅读(369) 评论(0) 推荐(0) 编辑
摘要:http://blog.geveo.com/OAuth-Implementation-for-WebAPI2 OAuth is an open standard for token based authentication and authorization on internet. In simp 阅读全文
posted @ 2019-02-01 16:42 ChuckLu 阅读(993) 评论(0) 推荐(0) 编辑
摘要:https://datatracker.ietf.org/doc/html/rfc6749#section-4.1 理解OAuth 2.0 - 阮一峰的网络日志 (ruanyifeng.com) https://www.cnblogs.com/chucklu/p/16809736.html 更新:我 阅读全文
posted @ 2019-02-01 14:18 ChuckLu 阅读(375) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/49002/prefer-composition-over-inheritance 解答1 Prefer composition over inheritance as it is more malleable / easy t 阅读全文
posted @ 2019-02-01 10:52 ChuckLu 阅读(518) 评论(0) 推荐(0) 编辑
摘要:问题: When planning out my programs, I often start with a chain of thought like so: A football team is just a list of football players. Therefore, I sho 阅读全文
posted @ 2019-02-01 10:39 ChuckLu 阅读(400) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示