Class StartupServiceCollectionExtensions
Extension methods for Microsoft.Extensions.DependencyInjection.IServiceCollection
Inheritance
System.Object
StartupServiceCollectionExtensions
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3Syntax
public static class StartupServiceCollectionExtensions : Object
Methods
AddStartupFilter<T>(IServiceCollection)
Adds an startup filter to the container.
Declaration
public static IServiceCollection AddStartupFilter<T>(this IServiceCollection services)
where T : IStartupFilter
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The Microsoft.Extensions.DependencyInjection.IServiceCollection |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | The Microsoft.Extensions.DependencyInjection.IServiceCollection |
Type Parameters
Name | Description |
---|---|
T | The type of Microsoft.AspNetCore.Hosting.IStartupFilter |