Skip to content

Use shared HttpClient, async fixes & caching - #28

Open
Kofysh wants to merge 1 commit into
STY1001:masterfrom
Kofysh:master
Open

Use shared HttpClient, async fixes & caching#28
Kofysh wants to merge 1 commit into
STY1001:masterfrom
Kofysh:master

Conversation

@Kofysh

@Kofysh Kofysh commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

Introduce shared HttpClient instances and concurrent caches (WMI results and resource images) to avoid repeated allocations and improve performance. Convert many methods to return Task or await calls properly (timers, UI animations, navigation/deploy, and page init methods) to ensure correct async flow and responsiveness. Replace busy-wait loops in modal dialogs with DispatcherFrame, harden wallpaper handling with a temp file and best-effort fallback, and improve file download stream handling (cancellation, FileShare). Remove many local HttpClient constructions and reuse static clients to prevent socket exhaustion.

Introduce shared HttpClient instances and concurrent caches (WMI results and resource images) to avoid repeated allocations and improve performance. Convert many methods to return Task or await calls properly (timers, UI animations, navigation/deploy, and page init methods) to ensure correct async flow and responsiveness. Replace busy-wait loops in modal dialogs with DispatcherFrame, harden wallpaper handling with a temp file and best-effort fallback, and improve file download stream handling (cancellation, FileShare). Remove many local HttpClient constructions and reuse static clients to prevent socket exhaustion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant