The startup process of ASP.NET Core applications is as follows Table of Contents  Startup Class Configure() Method Middleware Using Middleware Parameter IApplicationBuilder of Configure Method Extension Methods -- Middleware provided by Microsoft 1. Start…

2019年12月15日 2条评论 4177点热度 0人点赞 痴者工良 阅读全文

ASP.NET Core 程序启动过程如下 目录  Startup 类 Configure() 方法 中间件 使用中间件 Configure 方法 的参数 IApplicationBuilder Extension Methods(拓展方法)--微软提供的中间件 1, Startup 类 ASP.NET Core 应用使用 Startup 类,按照约定命名为 Startup 。 Startup 类: 可选择性地包括 ConfigureS…

2019年12月15日 2条评论 4696点热度 0人点赞 痴者工良 阅读全文

The author did not study ASP.NET, but went directly to learn ASP.NET Core. After finishing the basics of ASP.NET Core MVC, I began to learn about the operating principles of ASP.NET Core. I discovered that there is a very important "conductor" called HttpConte…

2019年12月15日 0条评论 5904点热度 0人点赞 痴者工良 阅读全文

笔者没有学 ASP.NET,直接学 ASP.NET Core ,学完 ASP.NET Core MVC 基础后,开始学习 ASP.NET Core 的运行原理。发现应用程序有一个非常主要的 “传导体” HttpContext 。 赶忙写一下笔记先。 目录 “传导体” HttpContext 操作 HttpContext 前期准备 HttpContext 类型的属性和方法 HttpContext 对象实践与测试 Request Response Item &l…

2019年12月15日 0条评论 4693点热度 0人点赞 痴者工良 阅读全文

Table of Contents: System.ComponentModel Attribute Namespaces and Common Classes System.ComponentModel.DataAnnotations ComponentModel - Classes ComponentModel - Structs ComponentModel - Interfaces ComponentModel - Enums ComponentModel - Delegates Content is be…

2019年12月15日 1条评论 4409点热度 0人点赞 痴者工良 阅读全文

目录: System.ComponentModel 特性命名空间与常用类 System.ComponentModel.DataAnnotations ComponentModel - Classes 类 ComponentModel - Structs 结构体 ComponentModel - Interfaces 界面 ComponentModel - Enums 枚举 ComponentModel - Delegates 委托 内容更新中  1,System.C…

2019年12月15日 1条评论 4476点热度 0人点赞 痴者工良 阅读全文

The author recently studied the concept of expression trees and wrote this article to reinforce understanding. If there are any errors, please comment and point them out~ Concept of Expression Trees The creation of expression trees can be done using Lambda met…

2019年12月15日 1条评论 12070点热度 0人点赞 痴者工良 阅读全文

笔者最近学了表达式树这一部分内容,为了加深理解,写文章巩固知识,如有错误,请评论指出~ 表达式树的概念 表达式树的创建有 Lambda法 和 组装法。 学习表达式树需要 委托、Lambda、Func<> 基础。 表达式树 形状可以参考 二叉树。 可以把表达式树理解成 数学表达式。     数学表达式的所有常量、符号为表达式树的底节点。每一次计算生成的结果是一个结点,或者说他们的共同结点就是他们应该进行的运算。 生成表达式树 表达式树的创建有 Lambda表达式法 和 组装法 为了方便,这里指定生成的表达…

2019年12月15日 1条评论 15799点热度 1人点赞 痴者工良 阅读全文

In everyday use of delegates, the following common methods are available: Method NameDescription  Clone   Creates a shallow copy of the delegate.  GetInvocationList   Returns a list of calls for this multicast delegate in the order they wil…

2019年12月15日 1条评论 4730点热度 0人点赞 痴者工良 阅读全文

在日常使用委托时,有以下常用方法 方法名称说明  Clone   创建委托的浅表副本。  GetInvocationList   按照调用顺序返回此多路广播委托的调用列表。  GetMethodImpl   返回由当前的 MulticastDelegate 表示的静态方法。  GetObjectData   用序列化该实例所需的所有数据填充 SerializationInfo 对象。  Membe…

2019年12月15日 1条评论 4545点热度 0人点赞 痴者工良 阅读全文

public class ValuesController : ControllerBase { // GET api/values/123 [HttpGet("{id}")] public ActionResult<string> Get(int id) { using (var process = new Process()) { process.StartInfo.FileName = @"..\HelloWorld\bin\Debug\helloworld.[...…

2019年12月14日 0条评论 1032点热度 0人点赞 痴者工良 阅读全文

public class ValuesController : ControllerBase { // GET api/values/123 [HttpGet("{id}")] public ActionResult<string> Get(int id) { using (var process = new Process()) { process.StartInfo.FileName = @"..\HelloWorld\bin\Debug\helloworld[....…

2019年12月14日 0条评论 4933点热度 0人点赞 痴者工良 阅读全文

In a Startup class, add a static variable: readonly string MyAllowSpecificOrigins = "_myAllowSpecificOrigins"; Configure global CORS in services: services.AddCors(options => { options.AddPolicy(MyAllowSpecificOrigins, buil[......]继续阅读

2019年12月12日 0条评论 1867点热度 0人点赞 痴者工良 阅读全文

Startup 中,添加一个静态变量 readonly string MyAllowSpecificOrigins = "_myAllowSpecificOrigins"; services 中配置全局放通 services.AddCors(options => { options.AddPolicy(MyAllowSpecificOrigins, builder => builder.AllowAnyHeader()[......]继续阅读

2019年12月12日 0条评论 4300点热度 0人点赞 痴者工良 阅读全文

Jiang Tingfu’s "Modern History of China" - Thoughts on the Humiliation History of Modern China Mr. Jiang Tingfu's scientific research in modern Chinese history indeed opened up a new trend alongside Mr. Luo (Luo Jialun). He established a scientific f…

2019年12月9日 0条评论 1185点热度 0人点赞 痴者工良 阅读全文

蒋廷黻著《中国近代史》**-中国近代屈辱史读后感** 蒋廷黻先生于近代中国史之科学研究,实与罗先生(罗家伦)同开风气。他为中国近代史建立了一个科学的基础,为旧中国的史学研究带来了新的方法、新的观念,是一个开山的人。 ——郭廷以 蒋廷黻(1895.12.7-1965.10.9),是中国著名历史学家、外交家,年轻时赴美求学,获得博士学位;1923年后回国,时任南开大学第一任历史系主任,与梁启超成为南开大学史学的奠基者。蒋廷黻经历过战争的洗礼、时代的冲击,在动荡年代目睹封建的王朝的衰落、欧美列强的入侵、中华民族水深火热的…

2019年12月9日 0条评论 8874点热度 0人点赞 痴者工良 阅读全文

[Changsun Wuji, the Twenty-Four Meritorious Officials of Lingyanshan]Best buddy of Emperor Taizong of Tang, Li Shimin   Introduction to Changsun Wuji Changsun Wuji, courtesy name Fujiji (Born-Died: 597-659), lived from the end of the Sui Dynasty to the cr…

2019年12月9日 1条评论 4748点热度 0人点赞 痴者工良 阅读全文

[凌烟阁二十四功臣之长孙无忌]唐太宗李世民的好基友   长孙无忌介绍 长孙无忌,字辅机(生卒时间:597年-659年),他一生从隋朝末年到唐高宗封武则天为皇后。长孙无忌是隋朝的长孙晟(右骁卫将军)之子,自幼被其高士廉(舅父)抚养长大,跟李世民是布衣之交。隋朝末年,李渊起兵后,无忌前去投奔,跟随李世民征战,成为心腹重臣,自此开始了他的宦途。唐朝开国后,长孙无忌论功排名第一,唐太宗李世民封其为齐国公。李世民劳苦功高、功勋卓著威胁到太子李建成的地位,李建成数次设法加害。为了反击,长孙无忌协助李世民在武德九年六月…

2019年12月9日 1条评论 4756点热度 0人点赞 痴者工良 阅读全文

High-speed download site for Docker  http://get.daocloud.io/#install-docker If you are using a Linux system, you can install it directly using the command The author is using the domestic operating system Deepin, supporting domestic systems (this tutorial…

2019年12月9日 0条评论 4560点热度 1人点赞 痴者工良 阅读全文

高速下载 Docker 的站点  http://get.daocloud.io/#install-docker 如果你是 linux系统,可以直接使用命令安装 笔者这里使用了 国产操作系统 Deepin ,支持一下国产系统(本教程适用其它Linux系统)    下载 Docker 打开终端,输入以下命令 curl -sSL https://get.daocloud.io/docker | sh 如果出现   bash: curl: 未找到命令 请使用以下命令后,再出现执行上面…

2019年12月9日 0条评论 4104点热度 1人点赞 痴者工良 阅读全文
1464748495054