随笔分类 -  ASP.NET(C#)

摘要:using System.Speech.Synthesis; //项目引用System.Speech var speech = new SpeechSynthesizer { Volume = 100, Rate = -5 }; speech.SetOutputToWaveFile(path); s 阅读全文
posted @ 2022-10-11 17:04 chenjingchun 阅读(52) 评论(0) 推荐(0)
摘要:void Main() { var list = new List<MusicEntity>(); for (int i = 0; i < 20; i++) { list.Add(new MusicEntity { Id = i, Path = new Random().Next(9999) + " 阅读全文
posted @ 2022-07-28 16:18 chenjingchun 阅读(1755) 评论(0) 推荐(1)
摘要:参考:构建树形结构数据(全部构建,查找构建)C#版 - umeall - 博客园 (cnblogs.com) 1 public class TreeObejct 2 { 3 public string id { set; get; } 4 public string pId { set; get; 阅读全文
posted @ 2022-03-04 11:10 chenjingchun 阅读(88) 评论(0) 推荐(1)
摘要:VS 2022密钥激活码: Professional: TD244-P4NB7-YQ6XK-Y8MMM-YWV2J Enterprise: VHF9H-NXBBB-638P6-6JHCY-88JWH 阅读全文
posted @ 2021-11-22 11:46 chenjingchun 阅读(1232) 评论(0) 推荐(0)
摘要:配置Nginx location / { proxy_pass http://localhost:5000; #真实IP proxy_set_header X-Real-IP $remote_addr; } .NET获取IP HttpContext.Request.Headers["X-Real-I 阅读全文
posted @ 2021-07-12 09:23 chenjingchun 阅读(156) 评论(0) 推荐(1)
摘要:location / { proxy_pass http://localhost:5000; #以下为WebSocket需要配置 proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Conn 阅读全文
posted @ 2021-06-03 14:51 chenjingchun 阅读(219) 评论(0) 推荐(0)
摘要:关联阅读:CentOS7部署.Net5项目到Docker中 https://www.cnblogs.com/Jerrycjc/p/15135882.html 本机环境:win10,已安装好docker,新建一个基于.net5的webapi项目 设置Dockerfile FROM mcr.micros 阅读全文
posted @ 2021-03-13 17:57 chenjingchun 阅读(408) 评论(0) 推荐(0)
摘要:转自https://www.cnblogs.com/yaotome/p/10657070.html Visual Studio 2019 EnterpriseBF8Y8-GN2QH-T84XB-QVY3B-RC4DFVisual Studio 2019 ProfessionalNYWVH-HT4XC 阅读全文
posted @ 2019-10-21 22:35 chenjingchun 阅读(214) 评论(0) 推荐(0)
摘要:画重点=>foreach中用int 阅读全文
posted @ 2018-07-22 11:03 chenjingchun 阅读(9595) 评论(0) 推荐(0)
摘要:C#类模板地址:C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ItemTemplates\CSharp\Code\2052\WebClass\Class.cs 阅读全文
posted @ 2018-07-06 10:59 chenjingchun 阅读(2489) 评论(0) 推荐(0)
摘要:企业版Enterprise: NJVYC-BMHX2-G77MM-4XJMR-6Q8QF 专业版Professional: KBJFW-NXHK6-W4WJM-CRMQB-G3CDH 阅读全文
posted @ 2018-07-05 16:07 chenjingchun 阅读(23780) 评论(0) 推荐(5)
摘要:来自Eleven老师示例 阅读全文
posted @ 2017-10-31 15:09 chenjingchun 阅读(1443) 评论(0) 推荐(0)
摘要:参考http://www.cnblogs.com/jesse2013/p/async-and-await.html 事例: static void Main(string[] args) { for (int i = 0; i GetNameAsync() { // 这里还是主线程 Conso... 阅读全文
posted @ 2017-03-02 16:39 chenjingchun 阅读(11035) 评论(0) 推荐(2)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { ... 阅读全文
posted @ 2017-01-09 09:59 chenjingchun 阅读(301) 评论(0) 推荐(0)
摘要:小记: 引用Quartz、Topshelf、Topshelf.Quartz 使用方法: http://www.cnblogs.com/mushroom/p/4952461.html http://www.cnblogs.com/jys509/p/4614975.html 任务调度: http://w 阅读全文
posted @ 2016-10-28 16:19 chenjingchun 阅读(678) 评论(0) 推荐(0)
摘要:protected static object MObjLock = new object();//同步锁 public string GetData(int mId) { Monitor.Enter(MObjLock);//lock string data = string.Empty; ... 阅读全文
posted @ 2016-09-23 10:59 chenjingchun 阅读(704) 评论(0) 推荐(0)
摘要:Uri uri = Request.UrlReferrer; 阅读全文
posted @ 2016-08-16 16:20 chenjingchun 阅读(279) 评论(0) 推荐(0)
摘要:摘自网络 static void Main(string[] args) { //各物品的概率保存在数组里 float[] area = new float[4]{ 0.5f, 0.5f, 0, ... 阅读全文
posted @ 2016-08-15 17:10 chenjingchun 阅读(4372) 评论(0) 推荐(0)
摘要:一般应用程序: using Newtonsoft.Json; using NPOI.HSSF.UserModel; using NPOI.SS.UserModel; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Web; namespac... 阅读全文
posted @ 2016-06-24 14:49 chenjingchun 阅读(333) 评论(0) 推荐(0)
摘要:public List DeleteList(List list) { foreach (var item in list) { if (删除条件) { list.Remove(item); ... 阅读全文
posted @ 2016-06-07 14:41 chenjingchun 阅读(482) 评论(0) 推荐(0)