WebHostBuilderExtensions.ConfigureTestContainer<TContainer> Método

Definição

Configura a IWebHostBuilder instância com os serviços fornecidos no servicesConfiguration.

public:
generic <typename TContainer>
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ ConfigureTestContainer(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ webHostBuilder, Action<TContainer> ^ servicesConfiguration);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureTestContainer<TContainer> (this Microsoft.AspNetCore.Hosting.IWebHostBuilder webHostBuilder, Action<TContainer> servicesConfiguration);
static member ConfigureTestContainer : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<'Container> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function ConfigureTestContainer(Of TContainer) (webHostBuilder As IWebHostBuilder, servicesConfiguration As Action(Of TContainer)) As IWebHostBuilder

Parâmetros de tipo

TContainer

Uma coleção de descritores de serviço.

Parâmetros

webHostBuilder
IWebHostBuilder

O IWebHostBuilder.

servicesConfiguration
Action<TContainer>

Um Action que registra serviços no TContainer.

Retornos

Aplica-se a