GenericHostWebHostBuilderExtensions.ConfigureSlimWebHost 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.
Adds and configures an ASP.NET Core web application with minimal dependencies.
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureSlimWebHost (this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> configure, Action<Microsoft.Extensions.Hosting.WebHostBuilderOptions> configureWebHostBuilder);
static member ConfigureSlimWebHost : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> * Action<Microsoft.Extensions.Hosting.WebHostBuilderOptions> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureSlimWebHost (builder As IHostBuilder, configure As Action(Of IWebHostBuilder), configureWebHostBuilder As Action(Of WebHostBuilderOptions)) As IHostBuilder
Parameters
- builder
- IHostBuilder
The IHostBuilder to add the IWebHostBuilder to.
- configure
- Action<IWebHostBuilder>
The delegate that configures the IWebHostBuilder.
- configureWebHostBuilder
- Action<WebHostBuilderOptions>
The delegate that configures the WebHostBuilderOptions.
Returns
The IHostBuilder.
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