WindowsServiceLifetimeHostBuilderExtensions Sınıf

Tanım

WindowsServiceLifetime'ı ayarlamaya 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

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üğüne günlüğe kaydetmeyi sağlar.

Şunlara uygulanır