Skip to content

Change to PathAssemblyResolver to properly allow overrides - #36756

Closed
DevDrake wants to merge 3 commits into
dotnet:masterfrom
DevDrake:master
Closed

DevDrake wants to merge 3 commits into
dotnet:masterfrom
DevDrake:master

Conversation

@DevDrake

@DevDrake DevDrake commented May 20, 2020 •

Copy link
Copy Markdown

Changes to PathAssemblyResolver to make it extensible.

The idea is to make the class more usable in different scenarios, as currently
it is as good as being sealed.
Improved code quality in Resolve method to return fast.

Changed _fileToPaths from private to protected.
Changed Resolve method to fail/return fast.
Renamed _fileToPaths to fileToPaths to align naming with the change.

Fix #36753

DevDrake added 2 commits May 20, 2020 14:06
Changed _fileToPaths from private to protected.
Changed Resolve to fail/return fast.
Change to PathAssemblyResolver to properly allow overrides dotnet#11709
@dnfclas

dnfclas commented May 20, 2020 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@DevDrake DevDrake changed the title Change to PathAssemblyResolver to properly allow overrides #11709 Change to PathAssemblyResolver to properly allow overrides May 20, 2020
Fixed problem with trailing whitespaces
@stephentoub

Copy link
Copy Markdown
Member

@DevDrake, thank you for your interest in contributing here. However, this change is exposing new API, and we have a process that needs to be followed for doing so: https://github.com/dotnet/runtime/blob/master/docs/project/api-review-process.md. Can you please open an issue (or update the one you already opened) with the specific APIs you're hoping to see exposed? (Also, it's very unlikely that a design including a protected field on a public type would be accepted.) In the meantime, I'm going to close this. Thanks.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PathAssemblyResolver System.Reflection.MetadataLoadContext should be sealed or allow overrides

4 participants