diff --git a/src/DI.Abstractions/ServiceCollectionServiceExtensions.cs b/src/DI.Abstractions/ServiceCollectionServiceExtensions.cs index a000b0c3..1b8beec1 100644 --- a/src/DI.Abstractions/ServiceCollectionServiceExtensions.cs +++ b/src/DI.Abstractions/ServiceCollectionServiceExtensions.cs @@ -87,7 +87,6 @@ public static IServiceCollection AddTransient( /// A reference to this instance after the operation has completed. /// public static IServiceCollection AddTransient(this IServiceCollection services) - where TService : class where TImplementation : class, TService { if (services == null) @@ -185,7 +184,6 @@ public static IServiceCollection AddTransient( public static IServiceCollection AddTransient( this IServiceCollection services, Func implementationFactory) - where TService : class where TImplementation : class, TService { if (services == null) @@ -280,7 +278,6 @@ public static IServiceCollection AddScoped( /// A reference to this instance after the operation has completed. /// public static IServiceCollection AddScoped(this IServiceCollection services) - where TService : class where TImplementation : class, TService { if (services == null) @@ -378,7 +375,6 @@ public static IServiceCollection AddScoped( public static IServiceCollection AddScoped( this IServiceCollection services, Func implementationFactory) - where TService : class where TImplementation : class, TService { if (services == null) @@ -472,7 +468,6 @@ public static IServiceCollection AddSingleton( /// A reference to this instance after the operation has completed. /// public static IServiceCollection AddSingleton(this IServiceCollection services) - where TService : class where TImplementation : class, TService { if (services == null) @@ -570,7 +565,6 @@ public static IServiceCollection AddSingleton( public static IServiceCollection AddSingleton( this IServiceCollection services, Func implementationFactory) - where TService : class where TImplementation : class, TService { if (services == null)