IServer Interface

Represents a server.

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

Syntax

public interface IServer : IDisposable
interface Microsoft.AspNetCore.Hosting.Server.IServer

Properties

Microsoft.AspNetCore.Hosting.Server.IServer.Features

A collection of HTTP features of the server.

Return type:Microsoft.AspNetCore.Http.Features.IFeatureCollection
IFeatureCollection Features { get; }

Methods

Start<TContext>(Microsoft.AspNetCore.Hosting.Server.IHttpApplication<TContext>)

Start the server with an application.

Arguments:application (Microsoft.AspNetCore.Hosting.Server.IHttpApplication<TContext>) – An instance of Microsoft.AspNetCore.Hosting.Server.IHttpApplication`1.
void Start<TContext>(IHttpApplication<TContext> application)