因为CallContext类是来自.Net Framework框架,此类目前还不支持.Net Core及.Net 5以上的框架。
参考微软官方文档:https://learn.microsoft.com/zh-cn/dotnet/api/system.runtime.remoting.messaging?view=netframework-4.8.1
CallContext是一个在.NetFramework中的类,它不被.NetCore和.Net5及以上版本支持。微软官方文档指出,System.Runtime.Remoting.Messaging命名空间的相关功能,如CallContext,仅在.NetFramework4.8.1及更低版本中可用。
因为CallContext类是来自.Net Framework框架,此类目前还不支持.Net Core及.Net 5以上的框架。
参考微软官方文档:https://learn.microsoft.com/zh-cn/dotnet/api/system.runtime.remoting.messaging?view=netframework-4.8.1

被折叠的 条评论
为什么被折叠?