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

Move WithMetadata with mapping for OpenGenericAssemblyScanning #1299

Merged
merged 3 commits into from
Dec 13, 2021

Conversation

romerod
Copy link
Contributor

@romerod romerod commented Dec 9, 2021

Add support for adding metadata accepting a type to metadata mapper.

@codecov
Copy link

codecov bot commented Dec 9, 2021

Codecov Report

Merging #1299 (e8e2dd5) into develop (a6a4d8d) will decrease coverage by 0.04%.
The diff coverage is 92.30%.

❗ Current head e8e2dd5 differs from pull request most recent head be6efa3. Consider uploading reports for the commit be6efa3 to get more accurate results
Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1299      +/-   ##
===========================================
- Coverage    76.62%   76.57%   -0.05%     
===========================================
  Files          188      188              
  Lines         5181     5183       +2     
  Branches      1061     1062       +1     
===========================================
- Hits          3970     3969       -1     
- Misses         712      714       +2     
- Partials       499      500       +1     
Impacted Files Coverage Δ
...nning/OpenGenericScanningRegistrationExtensions.cs 84.33% <ø> (-3.40%) ⬇️
...istrationExtensions.OpenGenericAssemblyScanning.cs 76.81% <92.00%> (+8.62%) ⬆️
.../Core/Resolving/Pipeline/ResolvePipelineBuilder.cs 93.50% <100.00%> (+0.64%) ⬆️
src/Autofac/Util/SequenceGenerator.cs 71.42% <0.00%> (-28.58%) ⬇️

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 a6a4d8d...be6efa3. Read the comment docs.

@tillig
Copy link
Member

tillig commented Dec 9, 2021

I think this looks good. I'm not sure why it was internal to start - we have a test for it to verify it works, but it was working due to access to internals. Before I approve - @alistairjevans @RaymondHuy do you guys know if there was a specific reason this was internal or was it just an oversight?

@alistairjevans
Copy link
Member

Looks like it was just an oversight; the tests for it clearly believe it to be publicly accessible. @romerod, can you also move the WithMetadataFrom method below it, which I suspect fell foul of the same problem?

@RaymondHuy
Copy link
Member

@tillig yes, it's my mistake, I'm sorry about it.

@romerod
Copy link
Contributor Author

romerod commented Dec 10, 2021 via email

@romerod romerod changed the title Add WithMetadata with mapping for OpenGenericAssemblyScanning Move WithMetadata with mapping for OpenGenericAssemblyScanning Dec 13, 2021
Copy link
Member

@tillig tillig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks!

@tillig tillig merged commit be2a437 into autofac:develop Dec 13, 2021
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.

4 participants