开发者

.NET: Does ExecutionContext.SuppressFlow dissociate ThreadStatic variables?

开发者 https://www.devze.com 2023-04-11 08:13 出处:网络
The title of the question pretty much says it all. Will static variables marked with the [ThreadStaticAttribute] get messed up if you use ExecutionContext.SuppressFlow() to cancel the propagation of t

The title of the question pretty much says it all. Will static variables marked with the [ThreadStaticAttribute] get messed up if you use ExecutionContext.SuppressFlow() to cancel the propagation of the security context and identity token, etc.?

In other words, are thread statics included in the set of context items? If so, is there a way to specify which parts of the context you want (i.开发者_JAVA百科e. only ThreadStatics and not the rest).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号