ObjectFactory should verify against a null
serviceProvider
#82315
Labels
area-Extensions-DependencyInjection
breaking-change
Issue or PR that represents a breaking API or functional change over a prerelease.
bug
help wanted
[up-for-grabs] Good issue for external contributors
Milestone
This will throw
NullReferenceException
, but should throwArgumentNullException
:See also the breaking change for
CreateInstance
now throwingArgumentNullException
at dotnet/docs#34158 which should be extended to mentionCreateFactory
. That PR added the test for anull
provider for the non-factory approach but the PR did not change the factory approach or add any tests. The factory approach has more complexity since it requires an Expression to do the check and throw.Thus, currently, the factory approach and non-factory approach have different semantics for validating against
serviceProvier
.The text was updated successfully, but these errors were encountered: