Glenn Slayden
Glenn Slayden

Reputation: 18749

.NET: Does ExecutionContext.SuppressFlow dissociate ThreadStatic variables?

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.e. only ThreadStatics and not the rest).

Upvotes: 1

Views: 473

Answers (0)

Related Questions