Dela via


WebHostService(IWebHost) Constructor

Definition

Creates an instance of WebHostService which hosts the specified web application.

public:
 WebHostService(Microsoft::AspNetCore::Hosting::IWebHost ^ host);
public WebHostService (Microsoft.AspNetCore.Hosting.IWebHost host);
new Microsoft.AspNetCore.Hosting.WindowsServices.WebHostService : Microsoft.AspNetCore.Hosting.IWebHost -> Microsoft.AspNetCore.Hosting.WindowsServices.WebHostService
Public Sub New (host As IWebHost)

Parameters

host
IWebHost

The configured web host containing the web application to host in the Windows service.

Applies to