WebHostBuilderExtensions.ConfigureTestContainer<TContainer> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures the IWebHostBuilder instance with the services provided 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
Type Parameters
- TContainer
A collection of service descriptors.
Parameters
- webHostBuilder
- IWebHostBuilder
The IWebHostBuilder.
Returns
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for