Skip to content

Deprecated CreateObject calls without IServiceProvider#5604

Merged
mitchelsellers merged 2 commits intodnnsoftware:developfrom
bdukes:deprecate-createobject
Apr 11, 2023
Merged

Deprecated CreateObject calls without IServiceProvider#5604
mitchelsellers merged 2 commits intodnnsoftware:developfrom
bdukes:deprecate-createobject

Conversation

@bdukes
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

bdukes commented Apr 5, 2023

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

@bdukes bdukes requested a review from mitchelsellers April 6, 2023 13:17
@bdukes
Copy link
Copy Markdown
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
Copy Markdown
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