04 2020 档案

摘要:public void FocusTreeViewNode(EntTreeModel node) { if (node == null) return; var treeViewItem = GetTreeViewItem(MemTree, node); treeViewItem?.BringInt 阅读全文
posted @ 2020-04-23 12:03 willamyao 阅读(610) 评论(0) 推荐(0) 编辑
摘要:internal class IocpUdpServer { private Socket _listen; private bool _isRun; private readonly int _bufferLength; //Sae池 private readonly SaeQueuePool _ 阅读全文
posted @ 2020-04-16 16:13 willamyao 阅读(109) 评论(0) 推荐(0) 编辑
摘要:internal class SaeQueuePool { /// <summary> /// SocketAsyncEventArgs可复用队列 /// </summary> private readonly ConcurrentQueue<SocketAsyncEventArgs> _saeQu 阅读全文
posted @ 2020-04-16 16:03 willamyao 阅读(148) 评论(0) 推荐(0) 编辑
摘要:internal class IocpUdpServer { private Socket _listen; private bool _isRun; private readonly int _bufferLength; //Sae池 private readonly SaeQueuePool _ 阅读全文
posted @ 2020-04-16 16:01 willamyao 阅读(137) 评论(0) 推荐(0) 编辑
摘要:上面的这个代码,我们发现一个问题啊,如果访问那个链接要好久,那么这也很受伤啊。是否能加入一个超时,如果访问一段时间没有返回结果,那么把资源留给别的需求者。 public static async Task<string> visitTimeoutUrl(HttpClient client,strin 阅读全文
posted @ 2020-04-07 19:41 willamyao 阅读(256) 评论(0) 推荐(0) 编辑