I have a specific scenario where I need to create multiple instances of a class that has dependency injection.
foreach (var setting in settings)
{
var client = new ServiceClient();
dict.Add(somekey, client);
}
ServiceClient class constructor has implemented DI for other dependent classes. How do I instantiate ServiceClient class?