Scope events to the execution of the entry point (#54090)
authorDavid Fowler <davidfowl@gmail.com>
Sat, 12 Jun 2021 06:09:46 +0000 (23:09 -0700)
committerGitHub <noreply@github.com>
Sat, 12 Jun 2021 06:09:46 +0000 (23:09 -0700)
commit2a011f802b83051d1381f7800131ca5734b4c59e
treece8e92dc08863376011ead21e41c26f653830641
parent23336b89d83e51789e0fd8bdff40689f5be2a58b
Scope events to the execution of the entry point (#54090)

* Scope events to the execution of the entry point
- Today we're using the global event source and events that fire in the app domain get captured and this can result in capturing the wrong instances. This fix uses an async local to scope the events for the HostingEventListener to the execution of the application's entry point.
- Removed the RemoteExecutor as a result of this change
- Remove RequirementsMet property
src/libraries/Microsoft.Extensions.HostFactoryResolver/src/HostFactoryResolver.cs
src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/HostFactoryResolverTests.cs
src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/Microsoft.Extensions.HostFactoryResolver.Tests.csproj