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