Flow Thread.CurrentPrincipal with ExecutionContext (dotnet/corefx#34747)
authorMarco Rossignoli <marco.rossignoli@gmail.com>
Wed, 30 Jan 2019 12:48:28 +0000 (13:48 +0100)
committerStephen Toub <stoub@microsoft.com>
Wed, 30 Jan 2019 12:48:28 +0000 (07:48 -0500)
commitc2f7f04f76ba6a7ab63c3cb37677276d922b93f6
treeed16c63ba3382e7576a417afaa2c9be209e35815
parente6bff16e8a65a8c5472f7e83d8aed9bb7e794b36
Flow Thread.CurrentPrincipal with ExecutionContext (dotnet/corefx#34747)

* flow Thread.CurrentPrincipal with ExecutionContext

* fix netfx test

* address PR feedback

* address PR feedback

* try to make test more reliable using StartNew(), removed from NetFramework

* address PR feedback

* nit: extraline

* add null set test

* nit: extraline, again...

* rename test

* apply Stephen fix

* nit: typos

* address PR feedback

* nit: update comment

Commit migrated from https://github.com/dotnet/corefx/commit/bab35ecc6f3f94215705d109d5094c1b3c461992
src/libraries/Common/tests/System/Threading/ThreadTestHelpers.cs
src/libraries/System.Threading.Thread/src/System/Threading/Thread.cs
src/libraries/System.Threading.Thread/tests/ThreadTests.cs