随笔分类 -  asp.net core

摘要:public void HttpClientPost() { using (var client = new HttpClient()) { client.BaseAddress = new Uri(this.txtUrl.Text); var content = new FormUrlEncode 阅读全文
posted @ 2021-08-19 21:32 Ken-Cai 阅读(81) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/clis/p/14325073.html 阅读全文
posted @ 2020-07-27 17:17 Ken-Cai 阅读(144) 评论(0) 推荐(0) 编辑
摘要:windows 下安装方法 https://www.cnblogs.com/jaign/articles/7920588.html Nuget: CSRedisCore https://github.com/2881099/csredis 阅读全文
posted @ 2019-05-18 23:48 Ken-Cai 阅读(92) 评论(0) 推荐(0) 编辑
摘要:1. 参考资料 官网 WebSocket 使用简要说明 官网 WebSocket API 使用 WebSocket 中间件 2. 程序A : 没有使用中间件 (https://www.cnblogs.com/u-drive/p/9833634.html) using Microsoft.AspNet 阅读全文
posted @ 2019-05-18 20:50 Ken-Cai 阅读(2637) 评论(0) 推荐(0) 编辑
摘要:如果是网站, 部署时不想挂在IIS上, 用到的命令是 start dotnet xxx.dll 部署时如果要指定端口号: 在 Program.cs 中设置. 1 public static IWebHostBuilder CreateWebHostBuilder(string[] args) => 阅读全文
posted @ 2019-05-18 19:50 Ken-Cai 阅读(152) 评论(0) 推荐(0) 编辑
摘要:1. 视频 https://www.bilibili.com/video/av33344382/?p=2 using System; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Micro 阅读全文
posted @ 2019-02-01 09:39 Ken-Cai 阅读(182) 评论(0) 推荐(0) 编辑
摘要:public void ConfigureServices(IServiceCollection services) { services.AddMvc(); #region Swagger services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new I 阅读全文
posted @ 2019-01-30 21:04 Ken-Cai 阅读(131) 评论(0) 推荐(0) 编辑
摘要:微软官方文档 https://docs.microsoft.com/zh-cn/aspnet/core/security/cors?view=aspnetcore-2.2 阅读全文
posted @ 2019-01-30 13:27 Ken-Cai 阅读(211) 评论(0) 推荐(0) 编辑
摘要:Entity层 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel.DataAnnotations; 4 using System.Runtime.Serialization; 5 usi 阅读全文
posted @ 2019-01-30 12:32 Ken-Cai 阅读(244) 评论(0) 推荐(0) 编辑

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