IWebHost Interface

Represents a configured web host.

Namespace
Microsoft.AspNetCore.Hosting
Assemblies
  • Microsoft.AspNetCore.Hosting.Abstractions

Syntax

public interface IWebHost : IDisposable
interface Microsoft.AspNetCore.Hosting.IWebHost

Properties

Microsoft.AspNetCore.Hosting.IWebHost.ServerFeatures

The Microsoft.AspNetCore.Http.Features.IFeatureCollection exposed by the configured server.

Return type:Microsoft.AspNetCore.Http.Features.IFeatureCollection
IFeatureCollection ServerFeatures { get; }
Microsoft.AspNetCore.Hosting.IWebHost.Services

The System.IServiceProvider for the host.

Return type:System.IServiceProvider
IServiceProvider Services { get; }

Methods

Start()

Starts listening on the configured addresses.

void Start()