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

Use UnderlyingSystemType for MakeGenericMethod #571

Merged
merged 1 commit into from
Sep 9, 2022

Conversation

seesharper
Copy link
Owner

@seesharper seesharper merged commit 26aac32 into master Sep 9, 2022
@seesharper seesharper deleted the fix-makegenerictype-for-nonruntime-type branch September 9, 2022 15:04
@dadhi
Copy link
Contributor

dadhi commented Sep 9, 2022

@seesharper Just curious what is the UnderlyingSystemType?

@seesharper
Copy link
Owner Author

@dadhi I am glad you asked.😃 I thought I was the only one not knowing about this one. 😅 Scrutor does some pretty low-level tricks to enable decoration using the built-in container in Microsoft.Extensions.DependencyInjection. It uses a Type decorator (https://github.com/khellang/Scrutor/blob/master/src/Scrutor/DecoratedType.cs) which sort of sweeps the feet under the assumption in LightInject that we always deal with a RuntimeType. If you clone the Scrutor repo and replace the IServiceProvider in TestBase with the one from DryIoc you might be in for a surprise 😀

@dadhi
Copy link
Contributor

dadhi commented Sep 9, 2022

@seesharper Wut? Ok, thanks, will check this out :)

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.

None yet

2 participants