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