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