TryAppendTransient(IServiceCollection, Type, Type)

public static IServiceCollection TryAppendTransient(IServiceCollection collection, Type serviceType, Type implementationType)
Returns:
IServiceCollection

Parameters

collection IServiceCollection
serviceType Type
implementationType Type

TryAppendTransient<TService, TImplementation>(IServiceCollection)

public static IServiceCollection TryAppendTransient<TService, TImplementation>(IServiceCollection collection) where TImplementation : TService
Returns:
IServiceCollection

Parameters

collection IServiceCollection

Type Parameters

TService TImplementation TService
In this article