WindowsServiceLifetimeHostBuilderExtensions Class

Definition

Extension methods for setting up WindowsServiceLifetime.

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

Methods

UseWindowsService(IHostBuilder)

Sets the host lifetime to WindowsServiceLifetime, sets the Content Root, and enables logging to the event log with the application name as the default source name.

Applies to