Condividi tramite


WebHostBuilderExtensions.ConfigureTestServices Metodo

Definizione

Configura l'istanza IWebHostBuilder con i servizi forniti in servicesConfiguration.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ ConfigureTestServices(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ webHostBuilder, Action<Microsoft::Extensions::DependencyInjection::IServiceCollection ^> ^ servicesConfiguration);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureTestServices (this Microsoft.AspNetCore.Hosting.IWebHostBuilder webHostBuilder, Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> servicesConfiguration);
static member ConfigureTestServices : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function ConfigureTestServices (webHostBuilder As IWebHostBuilder, servicesConfiguration As Action(Of IServiceCollection)) As IWebHostBuilder

Parametri

webHostBuilder
IWebHostBuilder

Oggetto IWebHostBuilder.

servicesConfiguration
Action<IServiceCollection>

Oggetto Action che registra i servizi nell'oggetto IServiceCollection.

Restituisce

Oggetto IWebHostBuilder.

Si applica a