WindowsServiceLifetimeHostBuilderExtensions Sınıf

Tanım

WindowsServiceLifetime'i ayarlamak için uzantı yöntemleri.

public ref class WindowsServiceLifetimeHostBuilderExtensions abstract sealed
public static class WindowsServiceLifetimeHostBuilderExtensions
type WindowsServiceLifetimeHostBuilderExtensions = class
Public Module WindowsServiceLifetimeHostBuilderExtensions
Devralma
WindowsServiceLifetimeHostBuilderExtensions

Yöntemler

AddWindowsService(IServiceCollection)

WindowsServiceLifetime'i ayarlamak için uzantı yöntemleri.

AddWindowsService(IServiceCollection, Action<WindowsServiceLifetimeOptions>)

WindowsServiceLifetime'i ayarlamak için uzantı yöntemleri.

UseWindowsService(IHostBuilder)

Konak ömrünü WindowsServiceLifetime olarak ayarlar, İçerik Kökünü ayarlar ve varsayılan kaynak adı olarak uygulama adıyla olay günlüğünde günlüğe kaydetmeyi etkinleştirir.

UseWindowsService(IHostBuilder, Action<WindowsServiceLifetimeOptions>)

WindowsServiceLifetime'i ayarlamak için uzantı yöntemleri.

Şunlara uygulanır