WindowsServiceLifetimeHostBuilderExtensions クラス

定義

WindowsServiceLifetime を設定するための拡張メソッド。

public ref class WindowsServiceLifetimeHostBuilderExtensions abstract sealed
public static class WindowsServiceLifetimeHostBuilderExtensions
type WindowsServiceLifetimeHostBuilderExtensions = class
Public Module WindowsServiceLifetimeHostBuilderExtensions
継承
WindowsServiceLifetimeHostBuilderExtensions

メソッド

AddWindowsService(IServiceCollection)

WindowsServiceLifetime を設定するための拡張メソッド。

AddWindowsService(IServiceCollection, Action<WindowsServiceLifetimeOptions>)

WindowsServiceLifetime を設定するための拡張メソッド。

UseWindowsService(IHostBuilder)

ホストの有効期間を WindowsServiceLifetime に設定し、コンテンツのルートを設定し、既定のソース名としてアプリケーション名を使用してイベント ログへのログ記録を有効にします。

UseWindowsService(IHostBuilder, Action<WindowsServiceLifetimeOptions>)

WindowsServiceLifetime を設定するための拡張メソッド。

適用対象