HostingExtensions.UseInvocationLifetime Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
public static Microsoft.Extensions.Hosting.IHostBuilder UseInvocationLifetime(this Microsoft.Extensions.Hosting.IHostBuilder host, Action<System.CommandLine.Hosting.InvocationLifetimeOptions> configureOptions = default);
static member UseInvocationLifetime : Microsoft.Extensions.Hosting.IHostBuilder * Action<System.CommandLine.Hosting.InvocationLifetimeOptions> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function UseInvocationLifetime (host As IHostBuilder, Optional configureOptions As Action(Of InvocationLifetimeOptions) = Nothing) As IHostBuilder
Parameter
- host
- IHostBuilder
- configureOptions
- Action<InvocationLifetimeOptions>