11 2023 档案

摘要:/// <summary>/// 同步方法里调用异步/// </summary> static void SyncMethod() { //同步方法中调用异步方法(第一种写法) AsyncMethod(参数1, 参数2).ConfigureAwait(false).GetAwaiter().GetR 阅读全文
posted @ 2023-11-23 16:55 爱吃糖的宝宝 阅读(110) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Threading.Tasks; class Program{ private static int yourParameter = 0; static async Task Main() { while (true) { // 等待5分钟 awa 阅读全文
posted @ 2023-11-18 11:17 爱吃糖的宝宝 阅读(11) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 查询项目列表 /// </summary> /// <param name="userModel"></param> /// <returns></returns> public async Task<List<GetProjectListOutput>> Get 阅读全文
posted @ 2023-11-14 14:29 爱吃糖的宝宝 阅读(33) 评论(0) 推荐(0) 编辑