Skip to content

Scope events to the execution of the entry point#54090

Merged
davidfowl merged 2 commits into
mainfrom
davidfowl/hostfactoryresolver-correlation
Jun 12, 2021
Merged

Scope events to the execution of the entry point#54090
davidfowl merged 2 commits into
mainfrom
davidfowl/hostfactoryresolver-correlation

Conversation

@davidfowl

@davidfowl davidfowl commented Jun 12, 2021

Copy link
Copy Markdown
Member
  • 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.

Fixes dotnet/aspnetcore#33494

PS: This doesn't try to handle multiple instances being created on the same execution context.

- 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
@ghost

ghost commented Jun 12, 2021

Copy link
Copy Markdown

Tagging subscribers to this area: @eerhardt, @maryamariyan
See info in area-owners.md if you want to be subscribed.

Issue Details
  • 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

Fixes dotnet/aspnetcore#33494

Author: davidfowl
Assignees: -
Labels:

area-Extensions-Hosting

Milestone: -

@davidfowl
davidfowl merged commit 2a011f8 into main Jun 12, 2021
@jkotas
jkotas deleted the davidfowl/hostfactoryresolver-correlation branch June 13, 2021 16:27
@ghost ghost locked as resolved and limited conversation to collaborators Jul 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SimpleWithWebApplicationBuilderTests.HelloWorld

2 participants