Condividi tramite


WebHostBuilderExtensions.ConfigureTestContainer<TContainer> Metodo

Definizione

Configura l'istanza IWebHostBuilder con i servizi forniti in 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

Parametri di tipo

TContainer

Raccolta di descrittori di servizio.

Parametri

webHostBuilder
IWebHostBuilder

Oggetto IWebHostBuilder.

servicesConfiguration
Action<TContainer>

Oggetto Action che registra i servizi nell'oggetto TContainer.

Restituisce

Si applica a