// With serviceType: collection.AddTransient(); // Without serviceType: collection.AddTransient();