Skip to content

A few fixes to [OnImportsSatisfied] use#290

Merged
AArnott merged 4 commits into
microsoft:mainfrom
AArnott:OnImportsSatisfied
Jan 20, 2022
Merged

A few fixes to [OnImportsSatisfied] use#290
AArnott merged 4 commits into
microsoft:mainfrom
AArnott:OnImportsSatisfied

Conversation

@AArnott
Copy link
Copy Markdown
Member

@AArnott AArnott commented Jan 20, 2022

The MEFv2 [OnImportsSatisfied] attribute wasn't handled properly in a few ways. This PR fixes these recently discovered issues.

  • Fix discovery of private [OnImportsSatisfied] methods in base classes
  • Fix support for multiple [OnImportsSatisfied] methods
    This includes API breaking changes, but all within the catalog/discovery system, which isn't considered critical since it's essentially for internal use only.
  • Fix discovery of internal [OnImportsSatisfied] methods
    In MEFv2, these would be found.
    In VS-MEF they were ignored unless the NonPublic flag was set. VS-MEF is meant to be compatible with V2 without that flag.

In MEFv2, these would be found.
In VS-MEF they were ignored unless the NonPublic flag was set. VS-MEF is meant to be compatible with V2 without that flag.
This includes API breaking changes, but all within the catalog/discovery system, which isn't considered critical since it's essentially for internal use only.
@AArnott AArnott added this to the v17.2 milestone Jan 20, 2022
@AArnott AArnott requested a review from milopezc January 20, 2022 22:02
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jan 20, 2022

Codecov Report

Merging #290 (49ec75c) into main (2bc6600) will decrease coverage by 0.49%.
The diff coverage is 88.23%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #290      +/-   ##
==========================================
- Coverage   89.63%   89.14%   -0.50%     
==========================================
  Files          87       87              
  Lines        6096     6105       +9     
==========================================
- Hits         5464     5442      -22     
- Misses        632      663      +31     
Impacted Files Coverage Δ
...osoft.VisualStudio.Composition/Strings.Designer.cs 68.67% <ø> (-0.38%) ⬇️
...sualStudio.Composition/ComposablePartDefinition.cs 95.34% <73.33%> (-3.02%) ⬇️
...mposition/Configuration/AttributedPartDiscovery.cs 95.97% <85.71%> (+0.06%) ⬆️
...osition/Configuration/AttributedPartDiscoveryV1.cs 96.69% <100.00%> (ø)
...lStudio.Composition/Configuration/CachedCatalog.cs 98.52% <100.00%> (ø)
...dio.Composition/Configuration/CachedComposition.cs 99.49% <100.00%> (ø)
...crosoft.VisualStudio.Composition/ExportProvider.cs 96.39% <100.00%> (ø)
...oft.VisualStudio.Composition/RuntimeComposition.cs 92.42% <100.00%> (-0.03%) ⬇️
...timeExportProviderFactory+RuntimeExportProvider.cs 97.74% <100.00%> (+<0.01%) ⬆️
...rc/Microsoft.VisualStudio.Composition/Utilities.cs 68.75% <100.00%> (ø)
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2bc6600...49ec75c. Read the comment docs.

@AArnott AArnott merged commit a8e7a51 into microsoft:main Jan 20, 2022
@AArnott AArnott deleted the OnImportsSatisfied branch January 20, 2022 22:44
AArnott pushed a commit that referenced this pull request Oct 30, 2024
Bumps [xunit](https://github.com/xunit/xunit) from 2.9.0 to 2.9.1.
- [Commits](xunit/xunit@2.9.0...2.9.1)

---
updated-dependencies:
- dependency-name: xunit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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