Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use the main thread for networking #10697

Merged
merged 1 commit into from
Oct 16, 2022
Merged

Don't use the main thread for networking #10697

merged 1 commit into from
Oct 16, 2022

Conversation

mattleibow
Copy link
Member

Description of Change

The workaround tries to use MainThread as a single entry point, however this breaks if there is no window yet.

I tested this now and it works without issues:

  • Microsoft Windows: 10.0.22000.978
  • .NET MAUI: 6.0.540
  • .NET SDK: 7.0.100-rc.1.22431.12
  • Windows App SDK: 1.1.3

Issues Fixed

Fixes an issue where using the networking in app/window constructors throws with a missing main thread because essentials needs a window to get the main thread.

Reverts #10062

@mattleibow mattleibow merged commit d3cb96b into main Oct 16, 2022
@mattleibow mattleibow deleted the dev/fix-issue branch October 16, 2022 08:03
@samhouts samhouts added the area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info label Jul 11, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants