Microsoft.AspNetCore.Hosting
26 wrapped types. Load them with using { "Microsoft.AspNetCore.Hosting" }. Click a class to open it.
DelegateStartup class · extends StartupBase<IServiceCollection>
Microsoft.AspNetCore.Hosting.DelegateStartup · assembly Microsoft.AspNetCore.Hosting
Constructors
new DelegateStartup(IServiceProviderFactory<IServiceCollection> factory, Action<IApplicationBuilder> configureApp) |
Ring: new DelegateStartup(args) uses one constructor; the others are chosen by the parameter names: new DelegateStartup().@New([ :param = value ]) or dnNew("DelegateStartup",[ :param = value ]).
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Configure | Configure(p1) | void Configure(IApplicationBuilder app) |
ConfigureContainer | callMethod("ConfigureContainer",[p1]) | void ConfigureContainer(IServiceCollection builder) |
ConfigureServices | ConfigureServices(p1) | void ConfigureServices(IServiceCollection services) |
CreateServiceProvider | callMethod("CreateServiceProvider",[p1]) | IServiceProvider CreateServiceProvider(IServiceCollection services) |
Members of the base class are inherited.
HostingAbstractionsWebHostBuilderExtensions class static
Microsoft.AspNetCore.Hosting.HostingAbstractionsWebHostBuilderExtensions · assembly Microsoft.AspNetCore.Hosting.Abstractions
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CaptureStartupErrors | CaptureStartupErrors(p1,p2) | static IWebHostBuilder CaptureStartupErrors(IWebHostBuilder hostBuilder, bool captureStartupErrors) |
PreferHostingUrls | PreferHostingUrls(p1,p2) | static IWebHostBuilder PreferHostingUrls(IWebHostBuilder hostBuilder, bool preferHostingUrls) |
Start | Start(p1,p2) | static IWebHost Start(IWebHostBuilder hostBuilder, string[] urls) |
SuppressStatusMessages | SuppressStatusMessages(p1,p2) | static IWebHostBuilder SuppressStatusMessages(IWebHostBuilder hostBuilder, bool suppressStatusMessages) |
UseConfiguration | UseConfiguration(p1,p2) | static IWebHostBuilder UseConfiguration(IWebHostBuilder hostBuilder, IConfiguration configuration) |
UseContentRoot | UseContentRoot(p1,p2) | static IWebHostBuilder UseContentRoot(IWebHostBuilder hostBuilder, string contentRoot) |
UseEnvironment | UseEnvironment(p1,p2) | static IWebHostBuilder UseEnvironment(IWebHostBuilder hostBuilder, string environment) |
UseServer | UseServer(p1,p2) | static IWebHostBuilder UseServer(IWebHostBuilder hostBuilder, IServer server) |
UseShutdownTimeout | UseShutdownTimeout(p1,p2) | static IWebHostBuilder UseShutdownTimeout(IWebHostBuilder hostBuilder, TimeSpan timeout) |
UseStartup | UseStartup(p1,p2) | static IWebHostBuilder UseStartup(IWebHostBuilder hostBuilder, string startupAssemblyName) |
UseUrls | UseUrls(p1,p2) | static IWebHostBuilder UseUrls(IWebHostBuilder hostBuilder, string[] urls) |
UseWebRoot | UseWebRoot(p1,p2) | static IWebHostBuilder UseWebRoot(IWebHostBuilder hostBuilder, string webRoot) |
HostingEnvironmentExtensions class static
Microsoft.AspNetCore.Hosting.HostingEnvironmentExtensions · assembly Microsoft.AspNetCore.Hosting
HostingStartupAttribute class sealed · extends Attribute
Microsoft.AspNetCore.Hosting.HostingStartupAttribute · assembly Microsoft.AspNetCore.Hosting.Abstractions
Constructors
new HostingStartupAttribute(Type hostingStartupType) |
Ring: new HostingStartupAttribute(args) uses one constructor; the others are chosen by the parameter names: new HostingStartupAttribute().@New([ :param = value ]) or dnNew("HostingStartupAttribute",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
HostingStartupType | Type | read | o.HostingStartupType |
Members of the base class are inherited.
IHostingStartup interface
Microsoft.AspNetCore.Hosting.IHostingStartup · assembly Microsoft.AspNetCore.Hosting.Abstractions
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Configure | Configure(p1) | void Configure(IWebHostBuilder builder) |
IStartup interface
Microsoft.AspNetCore.Hosting.IStartup · assembly Microsoft.AspNetCore.Hosting.Abstractions
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Configure | Configure(p1) | void Configure(IApplicationBuilder app) |
ConfigureServices | callMethod("ConfigureServices",[p1]) | IServiceProvider ConfigureServices(IServiceCollection services) |
IStartupFilter interface
Microsoft.AspNetCore.Hosting.IStartupFilter · assembly Microsoft.AspNetCore.Hosting.Abstractions
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Configure | callMethod("Configure",[p1]) | Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next) |
IWebHost interface
Microsoft.AspNetCore.Hosting.IWebHost · assembly Microsoft.AspNetCore.Hosting.Abstractions
Implements: IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ServerFeatures | IFeatureCollection | read | o.ServerFeatures |
Services | IServiceProvider | read | o.Services |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Start | callMethod("Start",[]) | void Start() |
StartAsync | StartAsync(value)StartAsync([ :cancellationToken = … ]) | Task StartAsync(CancellationToken cancellationToken = …) |
StopAsync | StopAsync(value)StopAsync([ :cancellationToken = … ]) | Task StopAsync(CancellationToken cancellationToken = …) |
IWebHostBuilder interface
Microsoft.AspNetCore.Hosting.IWebHostBuilder · assembly Microsoft.AspNetCore.Hosting.Abstractions
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Build | callMethod("Build",[]) | IWebHost Build() |
ConfigureAppConfiguration | callMethod("ConfigureAppConfiguration",[p1]) | IWebHostBuilder ConfigureAppConfiguration(Action<WebHostBuilderContext, IConfigurationBuilder> configureDelegate) |
ConfigureServices | callMethod("ConfigureServices",[p1]) | IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices)IWebHostBuilder ConfigureServices(Action<WebHostBuilderContext, IServiceCollection> configureServices) |
GetSetting | callMethod("GetSetting",[p1]) | string GetSetting(string key) |
UseSetting | callMethod("UseSetting",[p1,p2]) | IWebHostBuilder UseSetting(string key, string value) |
IWebHostEnvironment interface
Microsoft.AspNetCore.Hosting.IWebHostEnvironment · assembly Microsoft.AspNetCore.Hosting.Abstractions
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
WebRootPath | string | read, write | o.WebRootPath o.WebRootPath = v |
WebRootFileProvider | IFileProvider | read, write | o.WebRootFileProvider o.WebRootFileProvider = v |
KestrelServerOptionsSystemdExtensions class static
Microsoft.AspNetCore.Hosting.KestrelServerOptionsSystemdExtensions · assembly Microsoft.AspNetCore.Server.Kestrel.Core
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
UseSystemd | UseSystemd(value)UseSystemd([ :options = … ])UseSystemd([ :options = …, :configure = … ]) | static KestrelServerOptions UseSystemd(KestrelServerOptions options)static KestrelServerOptions UseSystemd(KestrelServerOptions options, Action<ListenOptions> configure) |
ListenOptionsConnectionLoggingExtensions class static
Microsoft.AspNetCore.Hosting.ListenOptionsConnectionLoggingExtensions · assembly Microsoft.AspNetCore.Server.Kestrel.Core
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
UseConnectionLogging | UseConnectionLogging(value)UseConnectionLogging([ :listenOptions = … ])UseConnectionLogging([ :listenOptions = …, :loggerName = … ]) | static ListenOptions UseConnectionLogging(ListenOptions listenOptions)static ListenOptions UseConnectionLogging(ListenOptions listenOptions, string loggerName) |
ListenOptionsHttpsExtensions class static
Microsoft.AspNetCore.Hosting.ListenOptionsHttpsExtensions · assembly Microsoft.AspNetCore.Server.Kestrel.Core
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
UseHttps | UseHttps(value)UseHttps([ :listenOptions = … ])UseHttps([ :listenOptions = …, :fileName = … ])UseHttps([ :listenOptions = …, :serverCertificate = … ])UseHttps([ :listenOptions = …, :configureOptions = … ]) | static ListenOptions UseHttps(ListenOptions listenOptions)static ListenOptions UseHttps(ListenOptions listenOptions, string fileName)static ListenOptions UseHttps(ListenOptions listenOptions, string fileName, string password)static ListenOptions UseHttps(ListenOptions listenOptions, string fileName, string password, Action<HttpsConnectionAdapterOptions> configureOptions)static ListenOptions UseHttps(ListenOptions listenOptions, StoreName storeName, string subject)static ListenOptions UseHttps(ListenOptions listenOptions, StoreName storeName, string subject, bool allowInvalid)static ListenOptions UseHttps(ListenOptions listenOptions, StoreName storeName, string subject, bool allowInvalid, StoreLocation location)static ListenOptions UseHttps(ListenOptions listenOptions, StoreName storeName, string subject, bool allowInvalid, StoreLocation location, Action<HttpsConnectionAdapterOptions> configureOptions)static ListenOptions UseHttps(ListenOptions listenOptions, X509Certificate2 serverCertificate)static ListenOptions UseHttps(ListenOptions listenOptions, X509Certificate2 serverCertificate, Action<HttpsConnectionAdapterOptions> configureOptions)static ListenOptions UseHttps(ListenOptions listenOptions, Action<HttpsConnectionAdapterOptions> configureOptions)static ListenOptions UseHttps(ListenOptions listenOptions, HttpsConnectionAdapterOptions httpsOptions)static ListenOptions UseHttps(ListenOptions listenOptions, ServerOptionsSelectionCallback serverOptionsSelectionCallback, object state)static ListenOptions UseHttps(ListenOptions listenOptions, ServerOptionsSelectionCallback serverOptionsSelectionCallback, object state, TimeSpan handshakeTimeout)static ListenOptions UseHttps(ListenOptions listenOptions, TlsHandshakeCallbackOptions callbackOptions) |
StartupBase class abstract
Microsoft.AspNetCore.Hosting.StartupBase · assembly Microsoft.AspNetCore.Hosting
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Configure | Configure(p1) | void Configure(IApplicationBuilder app) |
ConfigureServices | ConfigureServices(p1) | void ConfigureServices(IServiceCollection services) |
CreateServiceProvider | callMethod("CreateServiceProvider",[p1]) | IServiceProvider CreateServiceProvider(IServiceCollection services) |
StartupBase1 class abstract · extends StartupBase
Microsoft.AspNetCore.Hosting.StartupBase`1 · assembly Microsoft.AspNetCore.Hosting
Members of the base class are inherited.
WebHostBuilder class
Microsoft.AspNetCore.Hosting.WebHostBuilder · assembly Microsoft.AspNetCore.Hosting
Constructors
new WebHostBuilder() |
Ring: new WebHostBuilder(args) uses one constructor; the others are chosen by the parameter names: new WebHostBuilder().@New([ :param = value ]) or dnNew("WebHostBuilder",[ :param = value ]).
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Build | callMethod("Build",[]) | IWebHost Build() |
ConfigureAppConfiguration | callMethod("ConfigureAppConfiguration",[p1]) | IWebHostBuilder ConfigureAppConfiguration(Action<WebHostBuilderContext, IConfigurationBuilder> configureDelegate) |
ConfigureServices | callMethod("ConfigureServices",[p1]) | IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices)IWebHostBuilder ConfigureServices(Action<WebHostBuilderContext, IServiceCollection> configureServices) |
GetSetting | callMethod("GetSetting",[p1]) | string GetSetting(string key) |
UseSetting | callMethod("UseSetting",[p1,p2]) | IWebHostBuilder UseSetting(string key, string value) |
WebHostBuilderContext class
Microsoft.AspNetCore.Hosting.WebHostBuilderContext · assembly Microsoft.AspNetCore.Hosting.Abstractions
Constructors
new WebHostBuilderContext() |
Ring: new WebHostBuilderContext(args) uses one constructor; the others are chosen by the parameter names: new WebHostBuilderContext().@New([ :param = value ]) or dnNew("WebHostBuilderContext",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
HostingEnvironment | IWebHostEnvironment | read, write | o.HostingEnvironment o.HostingEnvironment = v |
Configuration | IConfiguration | read, write | o.Configuration o.Configuration = v |
WebHostBuilderExtensions class static
Microsoft.AspNetCore.Hosting.WebHostBuilderExtensions · assembly Microsoft.AspNetCore.Hosting
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Configure | Configure(p1,p2) | static IWebHostBuilder Configure(IWebHostBuilder hostBuilder, Action<IApplicationBuilder> configureApp)static IWebHostBuilder Configure(IWebHostBuilder hostBuilder, Action<WebHostBuilderContext, IApplicationBuilder> configureApp) |
ConfigureAppConfiguration | ConfigureAppConfiguration(p1,p2) | static IWebHostBuilder ConfigureAppConfiguration(IWebHostBuilder hostBuilder, Action<IConfigurationBuilder> configureDelegate) |
ConfigureLogging | ConfigureLogging(p1,p2) | static IWebHostBuilder ConfigureLogging(IWebHostBuilder hostBuilder, Action<ILoggingBuilder> configureLogging)static IWebHostBuilder ConfigureLogging(IWebHostBuilder hostBuilder, Action<WebHostBuilderContext, ILoggingBuilder> configureLogging) |
UseDefaultServiceProvider | UseDefaultServiceProvider(p1,p2) | static IWebHostBuilder UseDefaultServiceProvider(IWebHostBuilder hostBuilder, Action<ServiceProviderOptions> configure)static IWebHostBuilder UseDefaultServiceProvider(IWebHostBuilder hostBuilder, Action<WebHostBuilderContext, ServiceProviderOptions> configure) |
UseStartup | UseStartup(value)UseStartup([ :hostBuilder = … ])UseStartup([ :hostBuilder = …, :startupFactory = … ])UseStartup([ :hostBuilder = …, :startupType = … ]) | static IWebHostBuilder UseStartup<TStartup>(IWebHostBuilder hostBuilder, Func<WebHostBuilderContext, TStartup> startupFactory)static IWebHostBuilder UseStartup(IWebHostBuilder hostBuilder, Type startupType)static IWebHostBuilder UseStartup<TStartup>(IWebHostBuilder hostBuilder) |
UseStaticWebAssets | UseStaticWebAssets(p1) | static IWebHostBuilder UseStaticWebAssets(IWebHostBuilder builder) |
WebHostBuilderHttpSysExtensions class static
Microsoft.AspNetCore.Hosting.WebHostBuilderHttpSysExtensions · assembly Microsoft.AspNetCore.Server.HttpSys
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
UseHttpSys | UseHttpSys(value)UseHttpSys([ :hostBuilder = … ])UseHttpSys([ :hostBuilder = …, :options = … ]) | static IWebHostBuilder UseHttpSys(IWebHostBuilder hostBuilder)static IWebHostBuilder UseHttpSys(IWebHostBuilder hostBuilder, Action<HttpSysOptions> options) |
WebHostBuilderIISExtensions class static
Microsoft.AspNetCore.Hosting.WebHostBuilderIISExtensions · assembly Microsoft.AspNetCore.Server.IIS
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
UseIIS | UseIIS(p1) | static IWebHostBuilder UseIIS(IWebHostBuilder hostBuilder) |
WebHostBuilderKestrelExtensions class static
Microsoft.AspNetCore.Hosting.WebHostBuilderKestrelExtensions · assembly Microsoft.AspNetCore.Server.Kestrel
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ConfigureKestrel | ConfigureKestrel(p1,p2) | static IWebHostBuilder ConfigureKestrel(IWebHostBuilder hostBuilder, Action<KestrelServerOptions> options)static IWebHostBuilder ConfigureKestrel(IWebHostBuilder hostBuilder, Action<WebHostBuilderContext, KestrelServerOptions> configureOptions) |
UseKestrel | UseKestrel(value)UseKestrel([ :hostBuilder = … ])UseKestrel([ :hostBuilder = …, :options = … ])UseKestrel([ :hostBuilder = …, :configureOptions = … ]) | static IWebHostBuilder UseKestrel(IWebHostBuilder hostBuilder)static IWebHostBuilder UseKestrel(IWebHostBuilder hostBuilder, Action<KestrelServerOptions> options)static IWebHostBuilder UseKestrel(IWebHostBuilder hostBuilder, Action<WebHostBuilderContext, KestrelServerOptions> configureOptions) |
UseKestrelCore | UseKestrelCore(p1) | static IWebHostBuilder UseKestrelCore(IWebHostBuilder hostBuilder) |
UseKestrelHttpsConfiguration | UseKestrelHttpsConfiguration(p1) | static IWebHostBuilder UseKestrelHttpsConfiguration(IWebHostBuilder hostBuilder) |
WebHostBuilderNamedPipeExtensions class static
Microsoft.AspNetCore.Hosting.WebHostBuilderNamedPipeExtensions · assembly Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
UseNamedPipes | UseNamedPipes(value)UseNamedPipes([ :hostBuilder = … ])UseNamedPipes([ :hostBuilder = …, :configureOptions = … ]) | static IWebHostBuilder UseNamedPipes(IWebHostBuilder hostBuilder)static IWebHostBuilder UseNamedPipes(IWebHostBuilder hostBuilder, Action<NamedPipeTransportOptions> configureOptions) |
WebHostBuilderQuicExtensions class static
Microsoft.AspNetCore.Hosting.WebHostBuilderQuicExtensions · assembly Microsoft.AspNetCore.Server.Kestrel.Transport.Quic
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
UseQuic | UseQuic(value)UseQuic([ :hostBuilder = … ])UseQuic([ :hostBuilder = …, :configureOptions = … ]) | static IWebHostBuilder UseQuic(IWebHostBuilder hostBuilder)static IWebHostBuilder UseQuic(IWebHostBuilder hostBuilder, Action<QuicTransportOptions> configureOptions) |
WebHostBuilderSocketExtensions class static
Microsoft.AspNetCore.Hosting.WebHostBuilderSocketExtensions · assembly Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
UseSockets | UseSockets(value)UseSockets([ :hostBuilder = … ])UseSockets([ :hostBuilder = …, :configureOptions = … ]) | static IWebHostBuilder UseSockets(IWebHostBuilder hostBuilder)static IWebHostBuilder UseSockets(IWebHostBuilder hostBuilder, Action<SocketTransportOptions> configureOptions) |
WebHostDefaults class static
Microsoft.AspNetCore.Hosting.WebHostDefaults · assembly Microsoft.AspNetCore.Hosting.Abstractions
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ApplicationKey | string | read · static | o.ApplicationKey |
StartupAssemblyKey | string | read · static | o.StartupAssemblyKey |
HostingStartupAssembliesKey | string | read · static | o.HostingStartupAssembliesKey |
HostingStartupExcludeAssembliesKey | string | read · static | o.HostingStartupExcludeAssembliesKey |
DetailedErrorsKey | string | read · static | o.DetailedErrorsKey |
EnvironmentKey | string | read · static | o.EnvironmentKey |
WebRootKey | string | read · static | o.WebRootKey |
CaptureStartupErrorsKey | string | read · static | o.CaptureStartupErrorsKey |
ServerUrlsKey | string | read · static | o.ServerUrlsKey |
HttpPortsKey | string | read · static | o.HttpPortsKey |
HttpsPortsKey | string | read · static | o.HttpsPortsKey |
ContentRootKey | string | read · static | o.ContentRootKey |
PreferHostingUrlsKey | string | read · static | o.PreferHostingUrlsKey |
PreventHostingStartupKey | string | read · static | o.PreventHostingStartupKey |
SuppressStatusMessagesKey | string | read · static | o.SuppressStatusMessagesKey |
ShutdownTimeoutKey | string | read · static | o.ShutdownTimeoutKey |
StaticWebAssetsKey | string | read · static | o.StaticWebAssetsKey |
WebHostExtensions class static
Microsoft.AspNetCore.Hosting.WebHostExtensions · assembly Microsoft.AspNetCore.Hosting
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Run | Run(p1) | static void Run(IWebHost host) |
RunAsync | RunAsync([ :host = …, :token = … ]) | static Task RunAsync(IWebHost host, CancellationToken token = …) |
StopAsync | StopAsync(p1,p2) | static Task StopAsync(IWebHost host, TimeSpan timeout) |
WaitForShutdown | WaitForShutdown(p1) | static void WaitForShutdown(IWebHost host) |
WaitForShutdownAsync | WaitForShutdownAsync([ :host = …, :token = … ]) | static Task WaitForShutdownAsync(IWebHost host, CancellationToken token = …) |