共用方式為


ApplicationLifetime(ILogger<ApplicationLifetime>) 建構函式

定義

此 API 支援基礎結構,且不適合直接從程式碼使用。 此 API 可能會在未來的版本中變更或移除。

public:
 ApplicationLifetime(Microsoft::Extensions::Logging::ILogger<Microsoft::Extensions::Hosting::Internal::ApplicationLifetime ^> ^ logger);
public ApplicationLifetime (Microsoft.Extensions.Logging.ILogger<Microsoft.Extensions.Hosting.Internal.ApplicationLifetime> logger);
new Microsoft.Extensions.Hosting.Internal.ApplicationLifetime : Microsoft.Extensions.Logging.ILogger<Microsoft.Extensions.Hosting.Internal.ApplicationLifetime> -> Microsoft.Extensions.Hosting.Internal.ApplicationLifetime
Public Sub New (logger As ILogger(Of ApplicationLifetime))

參數

logger
ILogger<ApplicationLifetime>

用來初始化這個實例的記錄器。

適用於