Skip to content

Fix open generic decoration issue#76

Merged
khellang merged 2 commits into
khellang:masterfrom
wesleypetrowski-iq:fix-open-generic-decoration-issue
Jun 6, 2019
Merged

Fix open generic decoration issue#76
khellang merged 2 commits into
khellang:masterfrom
wesleypetrowski-iq:fix-open-generic-decoration-issue

Conversation

@wesleypetrowski-iq

Copy link
Copy Markdown
Contributor

Unit tests to reproduce #75, along with a potential fix.

The fix: When decorating open generics and trying to figure out all the different sets of generic type arguments that been registered for that open type, only look at descriptors where the service type on the descriptor and the service type that is requested to be decorated are actually the same generic type, instead of just assignable.

Comment thread test/Scrutor.Tests/OpenGenericDecorationTests.cs
Comment thread test/Scrutor.Tests/OpenGenericDecorationTests.cs
@khellang khellang merged commit 16b281d into khellang:master Jun 6, 2019
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.

2 participants