InvocationLifetime Constructors

Definition

Overloads

InvocationLifetime(IOptions<InvocationLifetimeOptions>, IHostEnvironment, IHostApplicationLifetime, InvocationContext, ILoggerFactory)

C#
public InvocationLifetime(Microsoft.Extensions.Options.IOptions<System.CommandLine.Hosting.InvocationLifetimeOptions> options, Microsoft.Extensions.Hosting.IHostEnvironment environment, Microsoft.Extensions.Hosting.IHostApplicationLifetime applicationLifetime, System.CommandLine.Invocation.InvocationContext context = default, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory = default);

Parameters

environment
IHostEnvironment
applicationLifetime
IHostApplicationLifetime
loggerFactory
ILoggerFactory

Applies to

.NET Standard 2.1 (package-provided)
Produit Versions
.NET Standard 2.1 (package-provided)

InvocationLifetime(IOptions<InvocationLifetimeOptions>, IHostingEnvironment, IApplicationLifetime, InvocationContext, ILoggerFactory)

C#
public InvocationLifetime(Microsoft.Extensions.Options.IOptions<System.CommandLine.Hosting.InvocationLifetimeOptions> options, Microsoft.Extensions.Hosting.IHostingEnvironment environment, Microsoft.Extensions.Hosting.IApplicationLifetime applicationLifetime, System.CommandLine.Invocation.InvocationContext context = default, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory = default);

Parameters

environment
IHostingEnvironment
applicationLifetime
IApplicationLifetime
loggerFactory
ILoggerFactory

Applies to

.NET Standard 2.0 (package-provided)
Produit Versions
.NET Standard 2.0 (package-provided)