WebHostBuilder.ConfigureServices Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
ConfigureServices(Action<WebHostBuilderContext,IServiceCollection>) |
Agrega un delegado para configurar servicios adicionales para el host o la aplicación web. Esto se puede llamar varias veces. |
ConfigureServices(Action<IServiceCollection>) |
Agrega un delegado para configurar servicios adicionales para el host o la aplicación web. Esto se puede llamar varias veces. |
ConfigureServices(Action<WebHostBuilderContext,IServiceCollection>)
- Source:
- WebHostBuilder.cs
- Source:
- WebHostBuilder.cs
- Source:
- WebHostBuilder.cs
Agrega un delegado para configurar servicios adicionales para el host o la aplicación web. Esto se puede llamar varias veces.
public:
virtual 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
override this.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
Parámetros
- configureServices
- Action<WebHostBuilderContext,IServiceCollection>
Delegado para configurar .IServiceCollection
Devoluciones
Implementaciones
Se aplica a
ConfigureServices(Action<IServiceCollection>)
- Source:
- WebHostBuilder.cs
- Source:
- WebHostBuilder.cs
- Source:
- WebHostBuilder.cs
Agrega un delegado para configurar servicios adicionales para el host o la aplicación web. Esto se puede llamar varias veces.
public:
virtual 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
override this.ConfigureServices : Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
Public Function ConfigureServices (configureServices As Action(Of IServiceCollection)) As IWebHostBuilder
Parámetros
- configureServices
- Action<IServiceCollection>
Delegado para configurar .IServiceCollection