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

AddWindowsService(IServiceCollection, Action<WindowsServiceLifetimeOptions>)

Configures the lifetime of the IHost built from services to WindowsServiceLifetime and enables logging to the event log with the application name as the default source name.

AddWindowsService(IServiceCollection)

Configures the lifetime of the IHost built from services to WindowsServiceLifetime and enables logging to the event log with the application name as the default source name.

UseWindowsService(IHostBuilder, Action<WindowsServiceLifetimeOptions>)

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

UseWindowsService(IHostBuilder)

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

Applies to