C#
强脚的花
这个作者很懒,什么都没留下…
展开
-
C#记录系统日志到txt
1、同目录新建log文件夹,系统操作日志写txt中,如果txt文件大于20M左右就拷贝log.txt文件内容到以当天日期命名的txt中,并清空原log.txt,继续用 using Data;//using System.Web.HttpServerUtility server = System.Web.HttpContext.Current.Server; strin...原创 2019-12-05 09:56:49 · 492 阅读 · 0 评论 -
C# 异步发送http get请求
using System.Net.Http; //using string url = "https://*******"; HttpClient client = new HttpClient(); HttpResponseMessage response = client.GetAsync(url).Result; th...原创 2019-12-05 09:47:14 · 769 阅读 · 0 评论