Skip to content

Conversation

@CuteLeon
Copy link
Contributor

@CuteLeon CuteLeon commented Aug 23, 2024

Fixes #11971

Proposed changes

  • Add a new public static method on Application: GetCurrentApplicationContext()

Customer Impact

  • A new public API

Regression?

  • No

Risk

  • No clearly risk

Test methodology

  • Can get current application context from another thread
  • Can get current application context from another thread with a message loop

Test environment(s)

  • 9.0.100-preview.7.24407.12
Microsoft Reviewers: Open in CodeFlow

@CuteLeon CuteLeon requested a review from a team as a code owner August 23, 2024 09:30
@codecov
Copy link

codecov bot commented Aug 23, 2024

Codecov Report

Attention: Patch coverage is 97.67442% with 1 line in your changes missing coverage. Please review.

Project coverage is 75.24744%. Comparing base (a9a317d) to head (c3bbbf5).
Report is 990 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #11972         +/-   ##
===================================================
+ Coverage   75.06611%   75.24744%   +0.18133%     
===================================================
  Files           3055        3079         +24     
  Lines         631875      633296       +1421     
  Branches       46776       46824         +48     
===================================================
+ Hits          474324      476539       +2215     
+ Misses        154177      153369        -808     
- Partials        3374        3388         +14     
Flag Coverage Δ
Debug 75.24744% <97.67442%> (+0.18133%) ⬆️
integration 18.00908% <0.00000%> (+0.08181%) ⬆️
production 48.55688% <100.00000%> (+0.33924%) ⬆️
test 97.02099% <97.61905%> (+0.00418%) ⬆️
unit 45.53778% <100.00000%> (+0.27657%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@CuteLeon CuteLeon closed this by deleting the head repository Jun 8, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhance WinForms Application static class to get current application context

1 participant