ServiceCollectionServiceExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extension methods for adding services to an IServiceCollection.
public ref class ServiceCollectionServiceExtensions abstract sealed
public static class ServiceCollectionServiceExtensions
type ServiceCollectionServiceExtensions = class
Public Module ServiceCollectionServiceExtensions
- Inheritance
-
ServiceCollectionServiceExtensions
Methods
AddKeyedScoped(IServiceCollection, Type, Object) |
Adds a scoped service of the type specified in |
AddKeyedScoped(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>) |
Adds a scoped service of the type specified in |
AddKeyedScoped(IServiceCollection, Type, Object, Type) |
Adds a scoped service of the type specified in |
AddKeyedScoped<TService,TImplementation>(IServiceCollection, Object) |
Adds a scoped service of the type specified in |
AddKeyedScoped<TService,TImplementation>(IServiceCollection, Object, Func<IServiceProvider,Object,TImplementation>) |
Adds a scoped service of the type specified in |
AddKeyedScoped<TService>(IServiceCollection, Object) |
Adds a scoped service of the type specified in |
AddKeyedScoped<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>) |
Adds a scoped service of the type specified in |
AddKeyedSingleton(IServiceCollection, Type, Object) |
Adds a singleton service of the type specified in |
AddKeyedSingleton(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>) |
Adds a singleton service of the type specified in |
AddKeyedSingleton(IServiceCollection, Type, Object, Object) |
Adds a singleton service of the type specified in |
AddKeyedSingleton(IServiceCollection, Type, Object, Type) |
Adds a singleton service of the type specified in |
AddKeyedSingleton<TService,TImplementation>(IServiceCollection, Object) |
Adds a singleton service of the type specified in |
AddKeyedSingleton<TService,TImplementation>(IServiceCollection, Object, Func<IServiceProvider,Object,TImplementation>) |
Adds a singleton service of the type specified in |
AddKeyedSingleton<TService>(IServiceCollection, Object) |
Adds a singleton service of the type specified in |
AddKeyedSingleton<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>) |
Adds a singleton service of the type specified in |
AddKeyedSingleton<TService>(IServiceCollection, Object, TService) |
Adds a singleton service of the type specified in |
AddKeyedTransient(IServiceCollection, Type, Object) |
Adds a transient service of the type specified in |
AddKeyedTransient(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>) |
Adds a transient service of the type specified in |
AddKeyedTransient(IServiceCollection, Type, Object, Type) |
Adds a transient service of the type specified in |
AddKeyedTransient<TService,TImplementation>(IServiceCollection, Object) |
Adds a transient service of the type specified in |
AddKeyedTransient<TService,TImplementation>(IServiceCollection, Object, Func<IServiceProvider,Object,TImplementation>) |
Adds a transient service of the type specified in |
AddKeyedTransient<TService>(IServiceCollection, Object) |
Adds a transient service of the type specified in |
AddKeyedTransient<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>) |
Adds a transient service of the type specified in |
AddScoped(IServiceCollection, Type) |
Adds a scoped service of the type specified in |
AddScoped(IServiceCollection, Type, Func<IServiceProvider,Object>) |
Adds a scoped service of the type specified in |
AddScoped(IServiceCollection, Type, Type) |
Adds a scoped service of the type specified in |
AddScoped<TService,TImplementation>(IServiceCollection) |
Adds a scoped service of the type specified in |
AddScoped<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>) |
Adds a scoped service of the type specified in |
AddScoped<TService>(IServiceCollection) |
Adds a scoped service of the type specified in |
AddScoped<TService>(IServiceCollection, Func<IServiceProvider,TService>) |
Adds a scoped service of the type specified in |
AddSingleton(IServiceCollection, Type) |
Adds a singleton service of the type specified in |
AddSingleton(IServiceCollection, Type, Func<IServiceProvider,Object>) |
Adds a singleton service of the type specified in |
AddSingleton(IServiceCollection, Type, Object) |
Adds a singleton service of the type specified in |
AddSingleton(IServiceCollection, Type, Type) |
Adds a singleton service of the type specified in |
AddSingleton<TService,TImplementation>(IServiceCollection) |
Adds a singleton service of the type specified in |
AddSingleton<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>) |
Adds a singleton service of the type specified in |
AddSingleton<TService>(IServiceCollection) |
Adds a singleton service of the type specified in |
AddSingleton<TService>(IServiceCollection, Func<IServiceProvider,TService>) |
Adds a singleton service of the type specified in |
AddSingleton<TService>(IServiceCollection, TService) |
Adds a singleton service of the type specified in |
AddTransient(IServiceCollection, Type) |
Adds a transient service of the type specified in |
AddTransient(IServiceCollection, Type, Func<IServiceProvider,Object>) |
Adds a transient service of the type specified in |
AddTransient(IServiceCollection, Type, Type) |
Adds a transient service of the type specified in |
AddTransient<TService,TImplementation>(IServiceCollection) |
Adds a transient service of the type specified in |
AddTransient<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>) |
Adds a transient service of the type specified in |
AddTransient<TService>(IServiceCollection) |
Adds a transient service of the type specified in |
AddTransient<TService>(IServiceCollection, Func<IServiceProvider,TService>) |
Adds a transient service of the type specified in |