WebHostService(IWebHost) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.