ReplaceSingleton<TService, TImplementation>(IServiceCollection)
public static IServiceCollection ReplaceSingleton<TService, TImplementation>(IServiceCollection collection) where TImplementation : TService
- Returns:
- IServiceCollection
Parameters
collection
IServiceCollection
Type Parameters
TService
TImplementation
TService
ReplaceSingleton(IServiceCollection, Type, Type)
public static IServiceCollection ReplaceSingleton(IServiceCollection collection, Type serviceType, Type implementationType)
- Returns:
- IServiceCollection
Parameters
collection
IServiceCollection
serviceType
Type
implementationType
Type