01 2019 档案

摘要:IComparable<Student>是Student的父类,所以IComparable<Student>可以接收Student。但是在使用CompareTo方法的时候,必须传入Student,不允许传入父类IComparable<Student>。 public interface ICompa 阅读全文
posted @ 2019-01-31 20:21 ChuckLu 阅读(403) 评论(0) 推荐(0) 编辑
摘要:What is Katana? https://github.com/aspnet/AspNetKatana/wiki Katana is a collection of projects for supporting OWIN http://owin.org with various Micros 阅读全文
posted @ 2019-01-31 17:23 ChuckLu 阅读(424) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/aspnet/web-api/overview/security/individual-accounts-in-web-api Individual accounts provide two ways for a user to lo 阅读全文
posted @ 2019-01-31 13:48 ChuckLu 阅读(273) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/aspnet/web-forms/overview/older-versions-security/introduction/an-overview-of-forms-authentication-cs Introduction In 阅读全文
posted @ 2019-01-31 13:33 ChuckLu 阅读(142) 评论(0) 推荐(0) 编辑
摘要:Basic authentication is defined in RFC 2617, HTTP Authentication: Basic and Digest Access Authentication. Disadvantages User credentials are sent in t 阅读全文
posted @ 2019-01-31 11:18 ChuckLu 阅读(185) 评论(0) 推荐(0) 编辑
摘要:https://www.codewars.com/kata/patterncraft-decorator/train/csharp https://www.dofactory.com/net/decorator-design-pattern 阅读全文
posted @ 2019-01-30 19:45 ChuckLu 阅读(159) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/aspnet/web-api/overview/formats-and-model-binding/json-and-xml-serialization JSON Media-Type Formatter JSON formattin 阅读全文
posted @ 2019-01-30 17:24 ChuckLu 阅读(417) 评论(0) 推荐(0) 编辑
摘要:This tutorial shows how to support additional media formats in ASP.NET Web API. Internet Media Types A media type, also called a MIME type, identifies 阅读全文
posted @ 2019-01-30 13:51 ChuckLu 阅读(156) 评论(0) 推荐(0) 编辑
摘要:There is an example project showing Web API in conjunction with OWIN self hosting https://github.com/autofac/Examples/tree/master/src/WebApiExample.Ow 阅读全文
posted @ 2019-01-29 15:14 ChuckLu 阅读(342) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/7199097/constructor-injection-into-a-base-class-using-autofac Calling the base class constructor explicitly is the 阅读全文
posted @ 2019-01-29 11:16 ChuckLu 阅读(454) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/aspnet/web-api/overview/advanced/calling-a-web-api-from-a-net-client 阅读全文
posted @ 2019-01-28 18:10 ChuckLu 阅读(481) 评论(0) 推荐(0) 编辑
摘要:https://autofaccn.readthedocs.io/en/latest/register/prop-method-injection.html Property and Method Injection While constructor parameter injection is 阅读全文
posted @ 2019-01-28 17:16 ChuckLu 阅读(652) 评论(0) 推荐(0) 编辑
摘要:https://autofaccn.readthedocs.io/en/latest/register/registration.html Registration Concepts (有4种方式来注册) You register components with Autofac by creatin 阅读全文
posted @ 2019-01-28 16:30 ChuckLu 阅读(978) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/20203982/owinstartup-not-firing 缺少依赖 Make sure you have installed Microsoft.Owin.Host.SystemWeb package in the pro 阅读全文
posted @ 2019-01-28 14:56 ChuckLu 阅读(310) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/45556189/git-the-revocation-function-was-unable-to-check-revocation-for-the-certificate It's always a bad idea to 阅读全文
posted @ 2019-01-28 13:32 ChuckLu 阅读(1062) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/6842687/the-remote-end-hung-up-unexpectedly-while-git-cloning Quick solution: With this kind of error, I usually s 阅读全文
posted @ 2019-01-28 12:50 ChuckLu 阅读(553) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/9564420/the-source-was-not-found-but-some-or-all-event-logs-could-not-be-searched EventLog.SourceExists enumerates 阅读全文
posted @ 2019-01-28 11:00 ChuckLu 阅读(150) 评论(0) 推荐(0) 编辑
摘要:在字幕侠的官网访问之后,发现 <meta name="baidu-site-verification" content="3uvZd9Aact" /> <script> var _hmt = _hmt || []; (function() { var hm = document.createElem 阅读全文
posted @ 2019-01-26 14:53 ChuckLu 阅读(563) 评论(0) 推荐(0) 编辑
摘要:https://autofaccn.readthedocs.io/en/latest/best-practices/ Autofac is designed to track and dispose of resources for you. To ensure this happens, make 阅读全文
posted @ 2019-01-25 16:51 ChuckLu 阅读(286) 评论(0) 推荐(0) 编辑
摘要:https://support.microsoft.com/en-ie/help/3151973/iis-shared-configuration-feature-requires-all-servers-to-run-the-same IIS Shared configuration featur 阅读全文
posted @ 2019-01-25 14:51 ChuckLu 阅读(395) 评论(0) 推荐(0) 编辑
摘要:https://support.microsoft.com/en-us/help/954872/how-to-create-and-manage-configuration-backups-in-internet-information INTRODUCTION This article descr 阅读全文
posted @ 2019-01-25 13:38 ChuckLu 阅读(341) 评论(0) 推荐(0) 编辑
摘要:https://github.com/RSuter/NSwag/wiki#ways-to-use-the-toolchain Customizations Swagger generation: You can customize the Swagger generator with the fol 阅读全文
posted @ 2019-01-24 17:04 ChuckLu 阅读(1590) 评论(0) 推荐(0) 编辑
摘要:https://github.com/NSwag/NSwag/wiki/OwinGlobalAsax This page explains how to use the NSwag OWIN middleware in your "Global.asax"-based web project. It 阅读全文
posted @ 2019-01-24 14:04 ChuckLu 阅读(1414) 评论(0) 推荐(0) 编辑
摘要:https://blog.rsuter.com/nswag-tutorial-integrate-the-nswag-toolchain-into-your-asp-net-web-api-project/ This tutorial shows how to integrate NSwag (Sw 阅读全文
posted @ 2019-01-24 13:53 ChuckLu 阅读(505) 评论(0) 推荐(0) 编辑
摘要:https://www.reddit.com/r/dotnet/comments/a2181x/swashbuckle_vs_nswag/ Swashbuckle https://github.com/aspnet/Docs/issues/4258 在官方的文档中引入NSwag的时机 https:/ 阅读全文
posted @ 2019-01-24 11:35 ChuckLu 阅读(2282) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/aspnet/core/tutorials/web-api-help-pages-using-swagger?view=aspnetcore-2.2 When consuming a Web API, understanding it 阅读全文
posted @ 2019-01-24 11:16 ChuckLu 阅读(423) 评论(0) 推荐(0) 编辑
摘要:2019-01-23 15:46:29.012+08:00 ERROR [6]: System.InvalidOperationException: Can't bind multiple parameters ('header' and 'parameters') to the request's 阅读全文
posted @ 2019-01-23 16:05 ChuckLu 阅读(861) 评论(0) 推荐(0) 编辑
摘要:https://exceptionnotfound.net/using-http-methods-correctly-in-asp-net-web-api/ The algorithm ASP.NET uses to calculate the "default" method for a give 阅读全文
posted @ 2019-01-23 15:35 ChuckLu 阅读(256) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/aspnet/web-api/overview/formats-and-model-binding/parameter-binding-in-aspnet-web-api 没有特殊需求的话,默认的绑定就可以使用。比如request b 阅读全文
posted @ 2019-01-22 16:52 ChuckLu 阅读(653) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/6203231/which-http-methods-match-up-to-which-crud-methods Create = PUT with a new URI POST to a base URI returning 阅读全文
posted @ 2019-01-22 16:35 ChuckLu 阅读(170) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/aspnet/web-api/overview/error-handling/exception-handling https://docs.microsoft.com/en-us/aspnet/web-api/overview/er 阅读全文
posted @ 2019-01-22 15:16 ChuckLu 阅读(298) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.7.2 422 UnprocessableEntity What HTTP status response code s 阅读全文
posted @ 2019-01-22 10:25 ChuckLu 阅读(437) 评论(0) 推荐(0) 编辑
摘要:https://autofaccn.readthedocs.io/en/latest/getting-started/index.html The basic pattern for integrating Autofac into your application is: Structure yo 阅读全文
posted @ 2019-01-21 18:08 ChuckLu 阅读(711) 评论(0) 推荐(0) 编辑
摘要:https://autofaccn.readthedocs.io/en/latest/lifetime/index.html 阅读全文
posted @ 2019-01-21 17:12 ChuckLu 阅读(204) 评论(0) 推荐(0) 编辑
摘要:Passing Parameters to Register When you register components you have the ability to provide a set of parameters that can be used during the resolution 阅读全文
posted @ 2019-01-21 17:04 ChuckLu 阅读(262) 评论(0) 推荐(0) 编辑
摘要:What's the difference between UTF-8 and UTF-8 without BOM? 评论: UTF-8 can be auto-detected better by contents than by BOM. The method is simple: try to 阅读全文
posted @ 2019-01-21 13:32 ChuckLu 阅读(844) 评论(0) 推荐(0) 编辑
摘要:https://discordapp.com/invite/my9WTwK https://freenode.net/ https://gitter.im/HearthSim/Hearthstone-Deck-Tracker https://slack.com/get-started https:/ 阅读全文
posted @ 2019-01-19 13:01 ChuckLu 阅读(948) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/23660340/need-to-log-asp-net-webapi-2-request-and-response-body-to-a-database https://docs.microsoft.com/en-us/asp 阅读全文
posted @ 2019-01-18 18:24 ChuckLu 阅读(303) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/aspnet/web-api/overview/advanced/http-message-handlers A message handler is a class that receives an HTTP request and 阅读全文
posted @ 2019-01-18 18:21 ChuckLu 阅读(190) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/12533782/difference-between-routetable-routes-and-httpconfiguration-routes The HttpConfiguration class is specific 阅读全文
posted @ 2019-01-18 14:11 ChuckLu 阅读(365) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/aspnet/web-api/overview/security/individual-accounts-in-web-api In Visual Studio 2013, the Web API project template g 阅读全文
posted @ 2019-01-18 13:59 ChuckLu 阅读(233) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/aspnet/web-api/overview/security/authentication-and-authorization-in-aspnet-web-api You've created a web API, but now 阅读全文
posted @ 2019-01-18 11:34 ChuckLu 阅读(265) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/16870413/how-to-call-another-controller-action-from-a-controller-in-mvc https://stackoverflow.com/questions/237485 阅读全文
posted @ 2019-01-17 19:24 ChuckLu 阅读(136) 评论(0) 推荐(0) 编辑
摘要:quick start https://autofaccn.readthedocs.io/en/latest/integration/webapi.html#quick-start To get Autofac integrated with Web API you need to referenc 阅读全文
posted @ 2019-01-17 18:52 ChuckLu 阅读(189) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/aspnet/web-api/overview/getting-started-with-aspnet-web-api/action-results This topic describes how ASP.NET Web API c 阅读全文
posted @ 2019-01-17 18:50 ChuckLu 阅读(423) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/14534167/multiple-actions-were-found-that-match-the-request-in-web-api Answer1 Your route map is probably somethin 阅读全文
posted @ 2019-01-17 18:22 ChuckLu 阅读(1155) 评论(0) 推荐(1) 编辑
摘要:Why is HttpGet required only for some actions? https://stackoverflow.com/questions/28068868/why-is-httpget-required-only-for-some-actions Please refer 阅读全文
posted @ 2019-01-17 18:02 ChuckLu 阅读(234) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/aspnet/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api Create a Web API Project 1.新建 阅读全文
posted @ 2019-01-17 14:03 ChuckLu 阅读(404) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/ttu1evldelfq5btqik/article/details/78763329 列表 https://baijiahao.baidu.com/s?id=1584015151646929279&wfr=spider&for=pc ZAP https: 阅读全文
posted @ 2019-01-16 15:41 ChuckLu 阅读(699) 评论(0) 推荐(0) 编辑
摘要:https://hub.packtpub.com/working-aspnet-web-api/ https://docs.microsoft.com/en-us/aspnet/web-api/overview/getting-started-with-aspnet-web-api/tutorial 阅读全文
posted @ 2019-01-16 13:59 ChuckLu 阅读(112) 评论(0) 推荐(0) 编辑
摘要:https://blogs.msdn.microsoft.com/zxue/2012/11/07/what-is-asp-net-web-api-and-how-does-it-work/ https://www.codeproject.com/Articles/341414/WCF-or-ASP- 阅读全文
posted @ 2019-01-16 13:42 ChuckLu 阅读(152) 评论(0) 推荐(0) 编辑
摘要:What is the difference between a web API and a web service? Answer1 A web service typically offers a WSDL from which you can create client stubs autom 阅读全文
posted @ 2019-01-16 13:28 ChuckLu 阅读(227) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/226108/what-is-a-web-service-in-plain-english Answer 1 A simple definition: A web service is a function that can b 阅读全文
posted @ 2019-01-16 09:47 ChuckLu 阅读(201) 评论(0) 推荐(0) 编辑
摘要:margin和text-align是css样式,align是html的 阅读全文
posted @ 2019-01-15 18:58 ChuckLu 阅读(595) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/qjqcs/p/5551640.html margin:0 auto;是设置块标签在父级中居中对齐,是一种对齐方式。所以对于display:inline-block,设置margin:0 auto;此时是其本身的行标签性质占上风(而行标签本身默认靠左对 阅读全文
posted @ 2019-01-15 18:50 ChuckLu 阅读(615) 评论(0) 推荐(0) 编辑
摘要:https://devshop.wordpress.com/2008/04/10/how-to-choose-from-viewstate-sessionstate-cookies-and-cache/ Problem with Web Applications Web applications a 阅读全文
posted @ 2019-01-15 13:37 ChuckLu 阅读(824) 评论(0) 推荐(0) 编辑
摘要:In a verbatim string (a string starting with @"") to escape double quotes you use double quotes, e.g. @"Please press ""Ok"".". If you want to do it wi 阅读全文
posted @ 2019-01-15 10:58 ChuckLu 阅读(590) 评论(0) 推荐(0) 编辑
摘要:打开fiddler之后,会自动捕获本机的http请求,以列表的形式显示在左侧 双击左侧列表中的某一个request,右侧会自动切换到Inspectors窗口。 右侧上半部分是request的raw GET http://www.cnblogs.com/ HTTP/2.0User-Agent: Fid 阅读全文
posted @ 2019-01-14 19:00 ChuckLu 阅读(306) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/youxin/p/3570310.html http://docs.telerik.com/fiddler/generate-traffic/tasks/CreateNewRequest https://www.cnblogs.com/woaixuex 阅读全文
posted @ 2019-01-14 18:46 ChuckLu 阅读(121) 评论(0) 推荐(0) 编辑
摘要:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice The slice() method returns a shallow copy of a portion of 阅读全文
posted @ 2019-01-13 12:35 ChuckLu 阅读(630) 评论(0) 推荐(1) 编辑
摘要:What's the difference between using “let” and “var”? ECMAScript 6 introduced the let statement. I've heard that it's described as a local variable, bu 阅读全文
posted @ 2019-01-13 12:20 ChuckLu 阅读(291) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/3010840/loop-through-an-array-in-javascript?page=1&tab=votes#tab-top 答案1 Use a sequential for loop: @zipcodeman su 阅读全文
posted @ 2019-01-12 14:35 ChuckLu 阅读(345) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/4775722/check-if-object-is-an-array One of the weird behaviour and spec in Javascript is the typeof Array is Objec 阅读全文
posted @ 2019-01-12 14:29 ChuckLu 阅读(123) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/aspnet/aspnet/overview/owin-and-katana/owin-startup-class-detection Create an ASP.NET Web App using OWIN Startup 阅读全文
posted @ 2019-01-11 15:25 ChuckLu 阅读(164) 评论(0) 推荐(0) 编辑
摘要:在winform中的OnPaint事件中,AppDomain.CurrentDomain.BaseDirectory得到的是下面这个路径 C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE Appl 阅读全文
posted @ 2019-01-10 10:54 ChuckLu 阅读(1151) 评论(0) 推荐(0) 编辑
摘要:source code of Kestrel of documentation https://github.com/aspnet/KestrelHttpServer https://github.com/aspnet/AspNetCore/tree/master/src/Servers/Kestr 阅读全文
posted @ 2019-01-09 17:49 ChuckLu 阅读(511) 评论(0) 推荐(0) 编辑
摘要:notepad++ 替换空行 Remove empty lines and spaces in Notepad++? 回答1 To get rid of leading space(s) and all empty lines (even if the empty line contains spa 阅读全文
posted @ 2019-01-09 15:33 ChuckLu 阅读(1455) 评论(0) 推荐(0) 编辑
摘要:https://www.atlassian.com/devops 阅读全文
posted @ 2019-01-09 13:46 ChuckLu 阅读(218) 评论(0) 推荐(0) 编辑
摘要:base64的原理, http://www.cnblogs.com/diligenceday/p/6002382.html http://www.cnblogs.com/chengxiaohui/articles/3951129.html base64的码表只有64个字符, 如果要表达64个字符的话 阅读全文
posted @ 2019-01-08 18:40 ChuckLu 阅读(3638) 评论(0) 推荐(0) 编辑
摘要:5.2 PBKDF2 PBKDF2 applies a pseudorandom function (see Appendix B.1 for an example) to derive keys. The length of the derived key is essentially unbou 阅读全文
posted @ 2019-01-08 17:56 ChuckLu 阅读(698) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/5970879/git-rebase-error-cannot-stat-file-permission-denied 退出visual studio之后仍然不行 尝试退出everything,发现可以了。 问题分析,第一次进行 阅读全文
posted @ 2019-01-08 15:41 ChuckLu 阅读(2971) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/16938151/uniqueidentifier-in-sql-becomes-lower-case-in-c-sharp If you using Entity Framework, uniqueidentifier dat 阅读全文
posted @ 2019-01-07 15:22 ChuckLu 阅读(397) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/2252979/windows-batch-call-more-than-one-command-in-a-for-loop Using & is fine for short commands, but that single 阅读全文
posted @ 2019-01-04 10:01 ChuckLu 阅读(249) 评论(0) 推荐(0) 编辑
摘要:How can I delete using INNER JOIN with SQL Server? You need to specify what table you are deleting from, here is a version with an alias: DELETE w FRO 阅读全文
posted @ 2019-01-02 18:19 ChuckLu 阅读(471) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/szx1999/article/details/50073857 7. 写日志会影响系统性能吗? 写日志必然是会消耗一定资源的,而RollingFileAppender也不是线程安全的。为了减小log4net影响系统性能的嫌疑,我们加入lockingMod 阅读全文
posted @ 2019-01-02 10:41 ChuckLu 阅读(934) 评论(0) 推荐(1) 编辑
摘要:How do I get multiple process to log to the same file? Before you even start trying any of the alternatives provided, ask yourself whether you really 阅读全文
posted @ 2019-01-02 10:23 ChuckLu 阅读(2283) 评论(0) 推荐(1) 编辑
摘要:RollingFileAppender.RollingStyle Property The default rolling style is Composite. When set to Once this appender's AppendToFile property is set to fal 阅读全文
posted @ 2019-01-02 10:06 ChuckLu 阅读(1554) 评论(0) 推荐(0) 编辑

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