I recently run upon a net core project with the current configuration:
services.AddTransient<Service1>();
services.AddSingleton<Service1>();
Where Service1 was a class. What could possibly be the purpose of this? Or its just a mistake?
Is there any way to choose whether to use a new instance of the service or the singleton dynamically?