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

Deprecated CreateObject calls without IServiceProvider #5604

Merged
merged 2 commits into from
Apr 11, 2023

Conversation

bdukes
Copy link
Contributor

@bdukes bdukes commented Apr 4, 2023

Summary

This PR adds overloads to Reflection.CreateObject which take IServiceProvider so that services can be injected.

@bdukes bdukes added this to the 9.11.3 milestone Apr 4, 2023
Copy link
Contributor

@valadas valadas left a comment

Choose a reason for hiding this comment

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

That is an awesome creative idea!

@valadas
Copy link
Contributor

valadas commented Apr 4, 2023

@bdukes do the test failures on FIPS sound a a fluke to you or is that some sort of clue for a possible bug here ?

@bdukes
Copy link
Contributor Author

bdukes commented Apr 5, 2023

The tests needed a dependency provider setup now, they should be fixed

@bdukes
Copy link
Contributor Author

bdukes commented Apr 10, 2023

@mitchelsellers once this is merged, I have a handful of PRs that make use of these changes

@mitchelsellers mitchelsellers merged commit e5fcf99 into dnnsoftware:develop Apr 11, 2023
@mitchelsellers mitchelsellers deleted the deprecate-createobject branch April 11, 2023 14:42
@mitchelsellers
Copy link
Contributor

@bdukes Awesome work

@valadas valadas changed the title Deprecate CreateObject calls without IServiceProvider Deprecated CreateObject calls without IServiceProvider Jun 14, 2023
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