Megosztás a következőn keresztül:


Microsoft.AspNetCore.Hosting Namespace

Provides types that help configure and start web applications.

Classes

AppServicesWebHostBuilderExtensions

Extension method to add Azure AppServices integration to the app.

ConventionBasedStartup
DelegateStartup

Used for initializing services and middlewares used by an application.

EnvironmentName

Commonly used environment names.

HostingAbstractionsWebHostBuilderExtensions

Contains extension methods for configuring the IWebHostBuilder.

HostingEnvironmentExtensions

Extension methods for IHostingEnvironment.

HostingStartupAttribute

Marker attribute indicating an implementation of IHostingStartup that will be loaded and executed when building an IWebHost.

KestrelServerOptionsConnectionLoggingExtensions
KestrelServerOptionsHttpsExtensions
KestrelServerOptionsSystemdExtensions

Extensions for integrating with systemd

ListenOptionsConnectionLoggingExtensions

Extensions for connection logging.

ListenOptionsHttpsExtensions

Extension methods for ListenOptions that configure Kestrel to use HTTPS for a given endpoint.

ServiceFakesWebHostExtensions

Extension methods supporting Kestrel server unit testing scenarios.

StartupBase

Base class for initializing services and middlewares used by an application.

StartupBase<TBuilder>

Base class for initializing services and middlewares used for configuring a TBuilder.

WebHostBuilder

A builder for IWebHost

WebHostBuilderContext

Context containing the common services on the IWebHost. Some properties may be null until set by the IWebHost.

WebHostBuilderExtensions

Contains extensions for configuring an IWebHostBuilder.

WebHostBuilderHttpSysExtensions

Provides extensions method to use Http.sys as the server for the web host.

WebHostBuilderIISExtensions

Extension methods for the IIS Out-Of-Process.

WebHostBuilderKestrelExtensions

Kestrel IWebHostBuilder extensions.

WebHostBuilderLibuvExtensions

Libuv IWebHostBuilder extensions.

WebHostBuilderMsQuicExtensions
WebHostBuilderNamedPipeExtensions

IWebHostBuilder extension methods to configure the Named Pipes transport to be used by Kestrel.

WebHostBuilderQuicExtensions

IWebHostBuilder extension methods to configure the Quic transport to be used by Kestrel.

WebHostBuilderSocketExtensions

IWebHostBuilder extension methods to configure the Socket transport to be used by Kestrel.

WebHostBuilderWebListenerExtensions
WebHostDefaults

Contains a set of constants representing configuration keys.

WebHostExtensions

Contains extensions for managing the lifecycle of an IWebHost.

Interfaces

IApplicationLifetime

Allows consumers to perform cleanup during a graceful shutdown.

This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Hosting.IHostApplicationLifetime.

IHostingEnvironment

Provides information about the web hosting environment an application is running in.

This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.AspNetCore.Hosting.IWebHostEnvironment.

IHostingStartup

Represents platform specific configuration that will be applied to a IWebHostBuilder when building an IWebHost.

IStartup

Provides an interface for initializing services and middleware used by an application.

IStartupConfigureContainerFilter<TContainerBuilder>

This API supports the ASP.NET Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

IStartupConfigureServicesFilter

This API supports the ASP.NET Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

IStartupFilter

Provides an interface for extending the middleware pipeline with new Configure methods. Can be used to add defaults to the beginning or end of the pipeline without having to make the app author explicitly register middleware.

IWebHost

Represents a configured web host.

IWebHostBuilder

A builder for IWebHost.

IWebHostEnvironment

Provides information about the web hosting environment an application is running in.

Remarks

For more information about ASP.NET Core hosting, see .NET Generic Host in ASP.NET Core.