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)
AddWindowsService(IServiceCollection, Action<WindowsServiceLifetimeOptions>)
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.

UseWindowsService(IHostBuilder, Action<WindowsServiceLifetimeOptions>)

Applies to