IWebHostBuilder.ConfigureServices IWebHostBuilder.ConfigureServices IWebHostBuilder.ConfigureServices IWebHostBuilder.ConfigureServices Method

Definition

Overloads

ConfigureServices(Action<WebHostBuilderContext,IServiceCollection>) 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>) 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>) 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);
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,Microsoft.Extensions.DependencyInjection.IServiceCollection>

A delegate for configuring the Microsoft.Extensions.DependencyInjection.IServiceCollection.

Returns

ConfigureServices(Action<IServiceCollection>) 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);
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<Microsoft.Extensions.DependencyInjection.IServiceCollection>

A delegate for configuring the Microsoft.Extensions.DependencyInjection.IServiceCollection.

Returns

Applies to