ConsoleLifetime Constructors
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
ConsoleLifetime(IOptions<ConsoleLifetimeOptions>, IHostEnvironment, IHostApplicationLifetime, IOptions<HostOptions>) |
This API supports infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases. |
ConsoleLifetime(IOptions<ConsoleLifetimeOptions>, IHostEnvironment, IHostApplicationLifetime, IOptions<HostOptions>, ILoggerFactory) |
This API supports infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases. |
ConsoleLifetime(IOptions<ConsoleLifetimeOptions>, IHostEnvironment, IHostApplicationLifetime, IOptions<HostOptions>)
- Source:
- ConsoleLifetime.cs
- Source:
- ConsoleLifetime.cs
- Source:
- ConsoleLifetime.cs
- Source:
- ConsoleLifetime.cs
This API supports infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.
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))
Parameters
- options
- IOptions<ConsoleLifetimeOptions>
An object used to retrieve ConsoleLifetimeOptions instances.
- environment
- IHostEnvironment
An object that contains information about the hosting environment an application is running in.
- applicationLifetime
- IHostApplicationLifetime
An object that allows consumers to be notified of application lifetime events.
- hostOptions
- IOptions<HostOptions>
An object used to retrieve Microsoft.Extensions.Hosting.Internal.ConsoleLifetime.HostOptions instances.
Exceptions
options
or environment
or applicationLifetime
or hostOptions
is null
.
Applies to
ConsoleLifetime(IOptions<ConsoleLifetimeOptions>, IHostEnvironment, IHostApplicationLifetime, IOptions<HostOptions>, ILoggerFactory)
- Source:
- ConsoleLifetime.cs
- Source:
- ConsoleLifetime.cs
- Source:
- ConsoleLifetime.cs
- Source:
- ConsoleLifetime.cs
This API supports infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.
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)
Parameters
- options
- IOptions<ConsoleLifetimeOptions>
An object used to retrieve ConsoleLifetimeOptions instances
- environment
- IHostEnvironment
An object that contains information about the hosting environment an application is running in.
- applicationLifetime
- IHostApplicationLifetime
An object that allows consumers to be notified of application lifetime events.
- hostOptions
- IOptions<HostOptions>
An object used to retrieve Microsoft.Extensions.Hosting.Internal.ConsoleLifetime.HostOptions instances.
- loggerFactory
- ILoggerFactory
An object to configure the logging system and create instances of ILogger from the registered ILoggerProvider.
Exceptions
options
or environment
or applicationLifetime
or hostOptions
or loggerFactory
is null
.
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