随笔分类 - asp.net core
摘要:public void HttpClientPost() { using (var client = new HttpClient()) { client.BaseAddress = new Uri(this.txtUrl.Text); var content = new FormUrlEncode
阅读全文
摘要:https://www.cnblogs.com/clis/p/14325073.html
阅读全文
摘要:windows 下安装方法 https://www.cnblogs.com/jaign/articles/7920588.html Nuget: CSRedisCore https://github.com/2881099/csredis
阅读全文
摘要:1. 参考资料 官网 WebSocket 使用简要说明 官网 WebSocket API 使用 WebSocket 中间件 2. 程序A : 没有使用中间件 (https://www.cnblogs.com/u-drive/p/9833634.html) using Microsoft.AspNet
阅读全文
摘要:如果是网站, 部署时不想挂在IIS上, 用到的命令是 start dotnet xxx.dll 部署时如果要指定端口号: 在 Program.cs 中设置. 1 public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
阅读全文
摘要:1. 视频 https://www.bilibili.com/video/av33344382/?p=2 using System; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Micro
阅读全文
摘要:public void ConfigureServices(IServiceCollection services) { services.AddMvc(); #region Swagger services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new I
阅读全文
摘要:微软官方文档 https://docs.microsoft.com/zh-cn/aspnet/core/security/cors?view=aspnetcore-2.2
阅读全文
摘要:Entity层 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel.DataAnnotations; 4 using System.Runtime.Serialization; 5 usi
阅读全文