Skip to content

Make sure GlobalHubClientPackage is loaded#48343

Merged
1 commit merged intodotnet:masterfrom
sharwell:fix-deadlocks-2
Oct 6, 2020
Merged

Make sure GlobalHubClientPackage is loaded#48343
1 commit merged intodotnet:masterfrom
sharwell:fix-deadlocks-2

Conversation

@sharwell
Copy link
Contributor

@sharwell sharwell commented Oct 5, 2020

IServiceBroker requires the UI thread to initialize a ServiceHub service if it is not already loaded before GetProxyAsync is called. This change loads GlobalHubClientPackage as part of WaitUntilFullyLoadedAsync to ensure this condition is met.

@sharwell sharwell requested a review from a team as a code owner October 5, 2020 22:41
Copy link
Contributor

@CyrusNajmabadi CyrusNajmabadi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i def prefer this, and am absolutely ok with this going in. It also seems worthwhile for us to continue the discussion with the ISB team to remove this UI dep themselves so their component can be entirely free threaded. (but that of course shouldn't block this PR) :)

IServiceBroker requires the UI thread to initialize a ServiceHub service
if it is not already loaded before GetProxyAsync is called. This change
loads GlobalHubClientPackage as part of WaitUntilFullyLoadedAsync to
ensure this condition is met.
@ghost
Copy link

ghost commented Oct 6, 2020

Hello @sharwell!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approval

@ghost ghost merged commit d7298b5 into dotnet:master Oct 6, 2020
@ghost ghost added this to the Next milestone Oct 6, 2020
@sharwell sharwell deleted the fix-deadlocks-2 branch October 6, 2020 12:57
@Cosifne Cosifne modified the milestones: Next, 16.9.P1 Oct 12, 2020
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants