Skip to content
This repository was archived by the owner on Nov 2, 2018. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/DI.Abstractions/ServiceCollectionServiceExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public static IServiceCollection AddTransient(
/// <returns>A reference to this instance after the operation has completed.</returns>
/// <seealso cref="ServiceLifetime.Transient"/>
public static IServiceCollection AddTransient<TService, TImplementation>(this IServiceCollection services)
where TService : class
where TImplementation : class, TService
{
if (services == null)
Expand Down Expand Up @@ -185,7 +184,6 @@ public static IServiceCollection AddTransient<TService>(
public static IServiceCollection AddTransient<TService, TImplementation>(
this IServiceCollection services,
Func<IServiceProvider, TImplementation> implementationFactory)
where TService : class
where TImplementation : class, TService
{
if (services == null)
Expand Down Expand Up @@ -280,7 +278,6 @@ public static IServiceCollection AddScoped(
/// <returns>A reference to this instance after the operation has completed.</returns>
/// <seealso cref="ServiceLifetime.Scoped"/>
public static IServiceCollection AddScoped<TService, TImplementation>(this IServiceCollection services)
where TService : class
where TImplementation : class, TService
{
if (services == null)
Expand Down Expand Up @@ -378,7 +375,6 @@ public static IServiceCollection AddScoped<TService>(
public static IServiceCollection AddScoped<TService, TImplementation>(
this IServiceCollection services,
Func<IServiceProvider, TImplementation> implementationFactory)
where TService : class
where TImplementation : class, TService
{
if (services == null)
Expand Down Expand Up @@ -472,7 +468,6 @@ public static IServiceCollection AddSingleton(
/// <returns>A reference to this instance after the operation has completed.</returns>
/// <seealso cref="ServiceLifetime.Singleton"/>
public static IServiceCollection AddSingleton<TService, TImplementation>(this IServiceCollection services)
where TService : class
where TImplementation : class, TService
{
if (services == null)
Expand Down Expand Up @@ -570,7 +565,6 @@ public static IServiceCollection AddSingleton<TService>(
public static IServiceCollection AddSingleton<TService, TImplementation>(
this IServiceCollection services,
Func<IServiceProvider, TImplementation> implementationFactory)
where TService : class
where TImplementation : class, TService
{
if (services == null)
Expand Down