I am trying to update my dependency injection to use Microsoft’s built in dependency injection rather than using the deprecated Unity dependency injection.
Unity has the following resolve: Resolve(Type t, string name, params ResolverOverride[] resolverOverrides);
I was trying to do the same thing with a ServiceProvider, but there is no such function. Is there a Service Provider function that does this?
After doing some research I found that creating an instance using ActivatorUtilities could be the fix to my problem, however I need help with the object[] parameter. I need one that is similar if not exactly the same as ResolverOverride, but I no longer want to use the Unity package. Is there a class that acts exactly like this?
If not, where can I find the source code of ParameterOverride so I can make the class myself. Using Google, I could only find the Microsoft Documentation but it doesn’t contain any useful information