Fork me on GitHub
摘要: AsyncLocal 的实现很简单,将AsyncLocal实例和当前线程的值以键值对的形式保存在Thread.CurrentThread.ExecutionContext.m_localValues.中。由于使用[ThreadStatic] 修饰了 Thread.CurrentThread属性对应的 阅读全文
posted @ 2019-09-24 12:31 Kane_Blake 阅读(1897) 评论(2) 推荐(6) 编辑