Comparteix a través de


ConsoleLifetime Constructores

Definición

Sobrecargas

ConsoleLifetime(IOptions<ConsoleLifetimeOptions>, IHostEnvironment, IHostApplicationLifetime, IOptions<HostOptions>)

Esta API admite la infraestructura y no está pensada para usarse directamente desde el código. Esta API puede cambiar o quitarse en futuras versiones.

ConsoleLifetime(IOptions<ConsoleLifetimeOptions>, IHostEnvironment, IHostApplicationLifetime, IOptions<HostOptions>, ILoggerFactory)

Esta API admite la infraestructura y no está pensada para usarse directamente desde el código. Esta API puede cambiar o quitarse en futuras versiones.

ConsoleLifetime(IOptions<ConsoleLifetimeOptions>, IHostEnvironment, IHostApplicationLifetime, IOptions<HostOptions>)

Source:
ConsoleLifetime.cs
Source:
ConsoleLifetime.cs
Source:
ConsoleLifetime.cs
Source:
ConsoleLifetime.cs

Esta API admite la infraestructura y no está pensada para usarse directamente desde el código. Esta API puede cambiar o quitarse en futuras versiones.

public:
 ConsoleLifetime(Microsoft::Extensions::Options::IOptions<Microsoft::Extensions::Hosting::ConsoleLifetimeOptions ^> ^ options, Microsoft::Extensions::Hosting::IHostEnvironment ^ environment, Microsoft::Extensions::Hosting::IHostApplicationLifetime ^ applicationLifetime, Microsoft::Extensions::Options::IOptions<Microsoft::Extensions::Hosting::HostOptions ^> ^ hostOptions);
public ConsoleLifetime (Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Hosting.ConsoleLifetimeOptions> options, Microsoft.Extensions.Hosting.IHostEnvironment environment, Microsoft.Extensions.Hosting.IHostApplicationLifetime applicationLifetime, Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Hosting.HostOptions> hostOptions);
new Microsoft.Extensions.Hosting.Internal.ConsoleLifetime : Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Hosting.ConsoleLifetimeOptions> * Microsoft.Extensions.Hosting.IHostEnvironment * Microsoft.Extensions.Hosting.IHostApplicationLifetime * Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Hosting.HostOptions> -> Microsoft.Extensions.Hosting.Internal.ConsoleLifetime
Public Sub New (options As IOptions(Of ConsoleLifetimeOptions), environment As IHostEnvironment, applicationLifetime As IHostApplicationLifetime, hostOptions As IOptions(Of HostOptions))

Parámetros

options
IOptions<ConsoleLifetimeOptions>

Objeto usado para recuperar instancias de ConsoleLifetimeOptions.

environment
IHostEnvironment

Objeto que contiene información sobre el entorno de hospedaje en el que se ejecuta una aplicación.

applicationLifetime
IHostApplicationLifetime

Objeto que permite a los consumidores recibir notificaciones de eventos de duración de la aplicación.

hostOptions
IOptions<HostOptions>

Objeto usado para recuperar instancias de Microsoft.Extensions.Hosting.Internal.ConsoleLifetime.HostOptions.

Excepciones

options o environment o applicationLifetime o hostOptions es null.

Se aplica a

ConsoleLifetime(IOptions<ConsoleLifetimeOptions>, IHostEnvironment, IHostApplicationLifetime, IOptions<HostOptions>, ILoggerFactory)

Source:
ConsoleLifetime.cs
Source:
ConsoleLifetime.cs
Source:
ConsoleLifetime.cs
Source:
ConsoleLifetime.cs

Esta API admite la infraestructura y no está pensada para usarse directamente desde el código. Esta API puede cambiar o quitarse en futuras versiones.

public:
 ConsoleLifetime(Microsoft::Extensions::Options::IOptions<Microsoft::Extensions::Hosting::ConsoleLifetimeOptions ^> ^ options, Microsoft::Extensions::Hosting::IHostEnvironment ^ environment, Microsoft::Extensions::Hosting::IHostApplicationLifetime ^ applicationLifetime, Microsoft::Extensions::Options::IOptions<Microsoft::Extensions::Hosting::HostOptions ^> ^ hostOptions, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public ConsoleLifetime (Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Hosting.ConsoleLifetimeOptions> options, Microsoft.Extensions.Hosting.IHostEnvironment environment, Microsoft.Extensions.Hosting.IHostApplicationLifetime applicationLifetime, Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Hosting.HostOptions> hostOptions, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.Extensions.Hosting.Internal.ConsoleLifetime : Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Hosting.ConsoleLifetimeOptions> * Microsoft.Extensions.Hosting.IHostEnvironment * Microsoft.Extensions.Hosting.IHostApplicationLifetime * Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Hosting.HostOptions> * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.Extensions.Hosting.Internal.ConsoleLifetime
Public Sub New (options As IOptions(Of ConsoleLifetimeOptions), environment As IHostEnvironment, applicationLifetime As IHostApplicationLifetime, hostOptions As IOptions(Of HostOptions), loggerFactory As ILoggerFactory)

Parámetros

options
IOptions<ConsoleLifetimeOptions>

Objeto usado para recuperar instancias de ConsoleLifetimeOptions

environment
IHostEnvironment

Objeto que contiene información sobre el entorno de hospedaje en el que se ejecuta una aplicación.

applicationLifetime
IHostApplicationLifetime

Objeto que permite a los consumidores recibir notificaciones de eventos de duración de la aplicación.

hostOptions
IOptions<HostOptions>

Objeto usado para recuperar instancias de Microsoft.Extensions.Hosting.Internal.ConsoleLifetime.HostOptions.

loggerFactory
ILoggerFactory

Objeto para configurar el sistema de registro y crear instancias de ILogger a partir del ILoggerProviderregistrado.

Excepciones

options o environment o applicationLifetime o hostOptions o loggerFactory es null.

Se aplica a