HostingExtensions.UseHost 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.
Overloads
UseHost(CommandLineBuilder, Action<IHostBuilder>) | |
UseHost(CommandLineBuilder, Func<String[],IHostBuilder>, Action<IHostBuilder>) |
UseHost(CommandLineBuilder, Action<IHostBuilder>)
public static System.CommandLine.Builder.CommandLineBuilder UseHost(this System.CommandLine.Builder.CommandLineBuilder builder, Action<Microsoft.Extensions.Hosting.IHostBuilder> configureHost = default);
static member UseHost : System.CommandLine.Builder.CommandLineBuilder * Action<Microsoft.Extensions.Hosting.IHostBuilder> -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function UseHost (builder As CommandLineBuilder, Optional configureHost As Action(Of IHostBuilder) = Nothing) As CommandLineBuilder
Parameters
- builder
- CommandLineBuilder
- configureHost
- Action<IHostBuilder>
Returns
Applies to
UseHost(CommandLineBuilder, Func<String[],IHostBuilder>, Action<IHostBuilder>)
public static System.CommandLine.Builder.CommandLineBuilder UseHost(this System.CommandLine.Builder.CommandLineBuilder builder, Func<string[],Microsoft.Extensions.Hosting.IHostBuilder> hostBuilderFactory, Action<Microsoft.Extensions.Hosting.IHostBuilder> configureHost = default);
static member UseHost : System.CommandLine.Builder.CommandLineBuilder * Func<string[], Microsoft.Extensions.Hosting.IHostBuilder> * Action<Microsoft.Extensions.Hosting.IHostBuilder> -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function UseHost (builder As CommandLineBuilder, hostBuilderFactory As Func(Of String(), IHostBuilder), Optional configureHost As Action(Of IHostBuilder) = Nothing) As CommandLineBuilder
Parameters
- builder
- CommandLineBuilder
- hostBuilderFactory
- Func<String[],IHostBuilder>
- configureHost
- Action<IHostBuilder>
Returns
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET