IWebHostBuilder.ConfigureServices IWebHostBuilder.ConfigureServices IWebHostBuilder.ConfigureServices Method

Definition

Overloads

ConfigureServices(Action<WebHostBuilderContext,IServiceCollection>) ConfigureServices(Action<WebHostBuilderContext,IServiceCollection>) ConfigureServices(Action<WebHostBuilderContext,IServiceCollection>)

Adds a delegate for configuring additional services for the host or web application. This may be called multiple times.

ConfigureServices(Action<IServiceCollection>) ConfigureServices(Action<IServiceCollection>) ConfigureServices(Action<IServiceCollection>)

Adds a delegate for configuring additional services for the host or web application. This may be called multiple times.

ConfigureServices(Action<WebHostBuilderContext,IServiceCollection>) ConfigureServices(Action<WebHostBuilderContext,IServiceCollection>) ConfigureServices(Action<WebHostBuilderContext,IServiceCollection>)

Adds a delegate for configuring additional services for the host or web application. This may be called multiple times.

public Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureServices (Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext,Microsoft.Extensions.DependencyInjection.IServiceCollection> configureServices);
abstract member ConfigureServices : Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext, Microsoft.Extensions.DependencyInjection.IServiceCollection> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
Public Function ConfigureServices (configureServices As Action(Of WebHostBuilderContext, IServiceCollection)) As IWebHostBuilder

Parameters

configureServices
Action<WebHostBuilderContext,IServiceCollection>

A delegate for configuring the IServiceCollection.

Returns

ConfigureServices(Action<IServiceCollection>) ConfigureServices(Action<IServiceCollection>) ConfigureServices(Action<IServiceCollection>)

Adds a delegate for configuring additional services for the host or web application. This may be called multiple times.

public Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureServices (Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> configureServices);
abstract member ConfigureServices : Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
Public Function ConfigureServices (configureServices As Action(Of IServiceCollection)) As IWebHostBuilder

Parameters

configureServices
Action<IServiceCollection>

A delegate for configuring the IServiceCollection.

Returns

Applies to