ServiceCollectionServiceExtensions extension

Extension methods for adding services to a ServiceCollection.

on

Methods

addScoped<TService>(ImplementationFactory implementationFactory) ServiceCollection

Available on ServiceCollection, provided by the ServiceCollectionServiceExtensions extension

addSingleton<TService>(ImplementationFactory implementationFactory) ServiceCollection

Available on ServiceCollection, provided by the ServiceCollectionServiceExtensions extension

addSingletonInstance<TService>(Object implementationInstance) ServiceCollection

Available on ServiceCollection, provided by the ServiceCollectionServiceExtensions extension

addTransient<TService>(ImplementationFactory implementationFactory) ServiceCollection

Available on ServiceCollection, provided by the ServiceCollectionServiceExtensions extension