Microsoft.Extensions.Hosting
27 wrapped types. Load them with using { "Microsoft.Extensions.Hosting" }. Click a class to open it.
AspHostingEnvironmentExtensions class static
Microsoft.Extensions.Hosting.HostingEnvironmentExtensions · assembly Microsoft.Extensions.Hosting.Abstractions
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
IsDevelopment | IsDevelopment(p1) | static bool IsDevelopment(IHostingEnvironment hostingEnvironment) |
IsEnvironment | IsEnvironment(p1,p2) | static bool IsEnvironment(IHostingEnvironment hostingEnvironment, string environmentName) |
IsProduction | IsProduction(p1) | static bool IsProduction(IHostingEnvironment hostingEnvironment) |
IsStaging | IsStaging(p1) | static bool IsStaging(IHostingEnvironment hostingEnvironment) |
BackgroundService class abstract
Microsoft.Extensions.Hosting.BackgroundService · assembly Microsoft.Extensions.Hosting.Abstractions
Implements: IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ExecuteTask | Task | read | o.ExecuteTask |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Dispose | callMethod("Dispose",[]) | void Dispose() |
StartAsync | callMethod("StartAsync",[p1]) | Task StartAsync(CancellationToken cancellationToken) |
StopAsync | callMethod("StopAsync",[p1]) | Task StopAsync(CancellationToken cancellationToken) |
ConsoleLifetimeOptions class
Microsoft.Extensions.Hosting.ConsoleLifetimeOptions · assembly Microsoft.Extensions.Hosting
Constructors
new ConsoleLifetimeOptions() |
Ring: new ConsoleLifetimeOptions(args) uses one constructor; the others are chosen by the parameter names: new ConsoleLifetimeOptions().@New([ :param = value ]) or dnNew("ConsoleLifetimeOptions",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
SuppressStatusMessages | bool | read, write | o.SuppressStatusMessages o.SuppressStatusMessages = v |
Environments class static
Microsoft.Extensions.Hosting.Environments · assembly Microsoft.Extensions.Hosting.Abstractions
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Development | string | read · static | o.Development |
Staging | string | read · static | o.Staging |
Production | string | read · static | o.Production |
GenericHostBuilderExtensions class static
Microsoft.Extensions.Hosting.GenericHostBuilderExtensions · assembly Microsoft.AspNetCore
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ConfigureWebHostDefaults | ConfigureWebHostDefaults([ :builder = …, :configure = … ])ConfigureWebHostDefaults([ :builder = …, :configure = …, :configureOptions = … ]) | static IHostBuilder ConfigureWebHostDefaults(IHostBuilder builder, Action<IWebHostBuilder> configure)static IHostBuilder ConfigureWebHostDefaults(IHostBuilder builder, Action<IWebHostBuilder> configure, Action<WebHostBuilderOptions> configureOptions) |
GenericHostWebHostBuilderExtensions class static
Microsoft.Extensions.Hosting.GenericHostWebHostBuilderExtensions · assembly Microsoft.AspNetCore.Hosting
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ConfigureSlimWebHost | ConfigureSlimWebHost(p1,p2,p3) | static IHostBuilder ConfigureSlimWebHost(IHostBuilder builder, Action<IWebHostBuilder> configure, Action<WebHostBuilderOptions> configureWebHostBuilder) |
ConfigureWebHost | ConfigureWebHost([ :builder = …, :configure = … ])ConfigureWebHost([ :builder = …, :configure = …, :configureWebHostBuilder = … ]) | static IHostBuilder ConfigureWebHost(IHostBuilder builder, Action<IWebHostBuilder> configure)static IHostBuilder ConfigureWebHost(IHostBuilder builder, Action<IWebHostBuilder> configure, Action<WebHostBuilderOptions> configureWebHostBuilder) |
Host class static
Microsoft.Extensions.Hosting.Host · assembly Microsoft.Extensions.Hosting
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CreateApplicationBuilder | CreateApplicationBuilder(NULL)CreateApplicationBuilder(value)CreateApplicationBuilder([ :args = … ])CreateApplicationBuilder([ :settings = … ]) | static HostApplicationBuilder CreateApplicationBuilder()static HostApplicationBuilder CreateApplicationBuilder(string[] args)static HostApplicationBuilder CreateApplicationBuilder(HostApplicationBuilderSettings settings) |
CreateDefaultBuilder | CreateDefaultBuilder(NULL)CreateDefaultBuilder(value)CreateDefaultBuilder([ :args = … ]) | static IHostBuilder CreateDefaultBuilder()static IHostBuilder CreateDefaultBuilder(string[] args) |
CreateEmptyApplicationBuilder | CreateEmptyApplicationBuilder(p1) | static HostApplicationBuilder CreateEmptyApplicationBuilder(HostApplicationBuilderSettings settings) |
HostAbortedException class sealed · extends Exception
Microsoft.Extensions.Hosting.HostAbortedException · assembly Microsoft.Extensions.Hosting.Abstractions
Implements: ISerializable
Constructors
new HostAbortedException() |
new HostAbortedException(string message) |
new HostAbortedException(string message, Exception innerException) |
Ring: new HostAbortedException(args) uses one constructor; the others are chosen by the parameter names: new HostAbortedException().@New([ :param = value ]) or dnNew("HostAbortedException",[ :param = value ]).
Members of the base class are inherited.
HostApplicationBuilder class sealed
Microsoft.Extensions.Hosting.HostApplicationBuilder · assembly Microsoft.Extensions.Hosting
Constructors
new HostApplicationBuilder() |
new HostApplicationBuilder(string[] args) |
new HostApplicationBuilder(HostApplicationBuilderSettings settings) |
Ring: new HostApplicationBuilder(args) uses one constructor; the others are chosen by the parameter names: new HostApplicationBuilder().@New([ :param = value ]) or dnNew("HostApplicationBuilder",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Environment | IHostEnvironment | read | o.Environment |
Configuration | ConfigurationManager | read | o.Configuration |
Services | IServiceCollection | read | o.Services |
Logging | ILoggingBuilder | read | o.Logging |
Metrics | IMetricsBuilder | read | o.Metrics |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Build | callMethod("Build",[]) | IHost Build() |
ConfigureContainer | callMethod("ConfigureContainer",[p1,p2]) | void ConfigureContainer<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder> factory, Action<TContainerBuilder> configure = …) |
HostApplicationBuilderSettings class sealed
Microsoft.Extensions.Hosting.HostApplicationBuilderSettings · assembly Microsoft.Extensions.Hosting
Constructors
new HostApplicationBuilderSettings() |
Ring: new HostApplicationBuilderSettings(args) uses one constructor; the others are chosen by the parameter names: new HostApplicationBuilderSettings().@New([ :param = value ]) or dnNew("HostApplicationBuilderSettings",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
DisableDefaults | bool | read, write | o.DisableDefaults o.DisableDefaults = v |
Args | string[] | read, write | o.Args o.Args = v |
Configuration | ConfigurationManager | read, write | o.Configuration o.Configuration = v |
EnvironmentName | string | read, write | o.EnvironmentName o.EnvironmentName = v |
ApplicationName | string | read, write | o.ApplicationName o.ApplicationName = v |
ContentRootPath | string | read, write | o.ContentRootPath o.ContentRootPath = v |
HostBuilder class
Microsoft.Extensions.Hosting.HostBuilder · assembly Microsoft.Extensions.Hosting
Constructors
new HostBuilder() |
Ring: new HostBuilder(args) uses one constructor; the others are chosen by the parameter names: new HostBuilder().@New([ :param = value ]) or dnNew("HostBuilder",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Properties | IDictionary<object, object> | read | o.Properties |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Build | callMethod("Build",[]) | IHost Build() |
ConfigureAppConfiguration | callMethod("ConfigureAppConfiguration",[p1]) | IHostBuilder ConfigureAppConfiguration(Action<HostBuilderContext, IConfigurationBuilder> configureDelegate) |
ConfigureContainer | callMethod("ConfigureContainer",[p1]) | IHostBuilder ConfigureContainer<TContainerBuilder>(Action<HostBuilderContext, TContainerBuilder> configureDelegate) |
ConfigureHostConfiguration | callMethod("ConfigureHostConfiguration",[p1]) | IHostBuilder ConfigureHostConfiguration(Action<IConfigurationBuilder> configureDelegate) |
ConfigureServices | callMethod("ConfigureServices",[p1]) | IHostBuilder ConfigureServices(Action<HostBuilderContext, IServiceCollection> configureDelegate) |
UseServiceProviderFactory | callMethod("UseServiceProviderFactory",[p1]) | IHostBuilder UseServiceProviderFactory<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder> factory)IHostBuilder UseServiceProviderFactory<TContainerBuilder>(Func<HostBuilderContext, IServiceProviderFactory<TContainerBuilder>> factory) |
HostBuilderContext class
Microsoft.Extensions.Hosting.HostBuilderContext · assembly Microsoft.Extensions.Hosting.Abstractions
Constructors
new HostBuilderContext(IDictionary<object, object> properties) |
Ring: new HostBuilderContext(args) uses one constructor; the others are chosen by the parameter names: new HostBuilderContext().@New([ :param = value ]) or dnNew("HostBuilderContext",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
HostingEnvironment | IHostEnvironment | read, write | o.HostingEnvironment o.HostingEnvironment = v |
Configuration | IConfiguration | read, write | o.Configuration o.Configuration = v |
Properties | IDictionary<object, object> | read | o.Properties |
HostDefaults class static
Microsoft.Extensions.Hosting.HostDefaults · assembly Microsoft.Extensions.Hosting.Abstractions
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ApplicationKey | string | read · static | o.ApplicationKey |
EnvironmentKey | string | read · static | o.EnvironmentKey |
ContentRootKey | string | read · static | o.ContentRootKey |
HostEnvironmentEnvExtensions class static
Microsoft.Extensions.Hosting.HostEnvironmentEnvExtensions · assembly Microsoft.Extensions.Hosting.Abstractions
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
IsDevelopment | IsDevelopment(p1) | static bool IsDevelopment(IHostEnvironment hostEnvironment) |
IsEnvironment | IsEnvironment(p1,p2) | static bool IsEnvironment(IHostEnvironment hostEnvironment, string environmentName) |
IsProduction | IsProduction(p1) | static bool IsProduction(IHostEnvironment hostEnvironment) |
IsStaging | IsStaging(p1) | static bool IsStaging(IHostEnvironment hostEnvironment) |
HostingAbstractionsHostBuilderExtensions class static
Microsoft.Extensions.Hosting.HostingAbstractionsHostBuilderExtensions · assembly Microsoft.Extensions.Hosting.Abstractions
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Start | Start(p1) | static IHost Start(IHostBuilder hostBuilder) |
StartAsync | StartAsync([ :hostBuilder = …, :cancellationToken = … ]) | static Task<IHost> StartAsync(IHostBuilder hostBuilder, CancellationToken cancellationToken = …) |
HostingAbstractionsHostExtensions class static
Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions · assembly Microsoft.Extensions.Hosting.Abstractions
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Run | Run(p1) | static void Run(IHost host) |
RunAsync | RunAsync([ :host = …, :token = … ]) | static Task RunAsync(IHost host, CancellationToken token = …) |
Start | Start(p1) | static void Start(IHost host) |
StopAsync | StopAsync(p1,p2) | static Task StopAsync(IHost host, TimeSpan timeout) |
WaitForShutdown | WaitForShutdown(p1) | static void WaitForShutdown(IHost host) |
WaitForShutdownAsync | WaitForShutdownAsync([ :host = …, :token = … ]) | static Task WaitForShutdownAsync(IHost host, CancellationToken token = …) |
HostingHostBuilderExtensions class static
Microsoft.Extensions.Hosting.HostingHostBuilderExtensions · assembly Microsoft.Extensions.Hosting
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ConfigureAppConfiguration | ConfigureAppConfiguration(p1,p2) | static IHostBuilder ConfigureAppConfiguration(IHostBuilder hostBuilder, Action<IConfigurationBuilder> configureDelegate) |
ConfigureContainer | ConfigureContainer(p1,p2) | static IHostBuilder ConfigureContainer<TContainerBuilder>(IHostBuilder hostBuilder, Action<TContainerBuilder> configureDelegate) |
ConfigureDefaults | ConfigureDefaults(p1,p2) | static IHostBuilder ConfigureDefaults(IHostBuilder builder, string[] args) |
ConfigureHostOptions | ConfigureHostOptions(p1,p2) | static IHostBuilder ConfigureHostOptions(IHostBuilder hostBuilder, Action<HostBuilderContext, HostOptions> configureOptions)static IHostBuilder ConfigureHostOptions(IHostBuilder hostBuilder, Action<HostOptions> configureOptions) |
ConfigureLogging | ConfigureLogging(p1,p2) | static IHostBuilder ConfigureLogging(IHostBuilder hostBuilder, Action<HostBuilderContext, ILoggingBuilder> configureLogging)static IHostBuilder ConfigureLogging(IHostBuilder hostBuilder, Action<ILoggingBuilder> configureLogging) |
ConfigureMetrics | ConfigureMetrics(p1,p2) | static IHostBuilder ConfigureMetrics(IHostBuilder hostBuilder, Action<IMetricsBuilder> configureMetrics)static IHostBuilder ConfigureMetrics(IHostBuilder hostBuilder, Action<HostBuilderContext, IMetricsBuilder> configureMetrics) |
ConfigureServices | ConfigureServices(p1,p2) | static IHostBuilder ConfigureServices(IHostBuilder hostBuilder, Action<IServiceCollection> configureDelegate) |
RunConsoleAsync | RunConsoleAsync([ :hostBuilder = …, :cancellationToken = … ])RunConsoleAsync([ :hostBuilder = …, :configureOptions = …, :cancellationToken = … ]) | static Task RunConsoleAsync(IHostBuilder hostBuilder, CancellationToken cancellationToken = …)static Task RunConsoleAsync(IHostBuilder hostBuilder, Action<ConsoleLifetimeOptions> configureOptions, CancellationToken cancellationToken = …) |
UseConsoleLifetime | UseConsoleLifetime(value)UseConsoleLifetime([ :hostBuilder = … ])UseConsoleLifetime([ :hostBuilder = …, :configureOptions = … ]) | static IHostBuilder UseConsoleLifetime(IHostBuilder hostBuilder)static IHostBuilder UseConsoleLifetime(IHostBuilder hostBuilder, Action<ConsoleLifetimeOptions> configureOptions) |
UseContentRoot | UseContentRoot(p1,p2) | static IHostBuilder UseContentRoot(IHostBuilder hostBuilder, string contentRoot) |
UseDefaultServiceProvider | UseDefaultServiceProvider(p1,p2) | static IHostBuilder UseDefaultServiceProvider(IHostBuilder hostBuilder, Action<ServiceProviderOptions> configure)static IHostBuilder UseDefaultServiceProvider(IHostBuilder hostBuilder, Action<HostBuilderContext, ServiceProviderOptions> configure) |
UseEnvironment | UseEnvironment(p1,p2) | static IHostBuilder UseEnvironment(IHostBuilder hostBuilder, string environment) |
HostOptions class
Microsoft.Extensions.Hosting.HostOptions · assembly Microsoft.Extensions.Hosting
Constructors
new HostOptions() |
Ring: new HostOptions(args) uses one constructor; the others are chosen by the parameter names: new HostOptions().@New([ :param = value ]) or dnNew("HostOptions",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ShutdownTimeout | TimeSpan | read, write | o.ShutdownTimeout o.ShutdownTimeout = v |
StartupTimeout | TimeSpan | read, write | o.StartupTimeout o.StartupTimeout = v |
ServicesStartConcurrently | bool | read, write | o.ServicesStartConcurrently o.ServicesStartConcurrently = v |
ServicesStopConcurrently | bool | read, write | o.ServicesStopConcurrently o.ServicesStopConcurrently = v |
BackgroundServiceExceptionBehavior | BackgroundServiceExceptionBehavior | read, write | o.BackgroundServiceExceptionBehavior o.BackgroundServiceExceptionBehavior = v |
IHost interface
Microsoft.Extensions.Hosting.IHost · assembly Microsoft.Extensions.Hosting.Abstractions
Implements: IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Services | IServiceProvider | read | o.Services |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
StartAsync | StartAsync(value)StartAsync([ :cancellationToken = … ]) | Task StartAsync(CancellationToken cancellationToken = …) |
StopAsync | StopAsync(value)StopAsync([ :cancellationToken = … ]) | Task StopAsync(CancellationToken cancellationToken = …) |
IHostApplicationBuilder interface
Microsoft.Extensions.Hosting.IHostApplicationBuilder · assembly Microsoft.Extensions.Hosting.Abstractions
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Properties | IDictionary<object, object> | read | o.Properties |
Configuration | IConfigurationManager | read | o.Configuration |
Environment | IHostEnvironment | read | o.Environment |
Logging | ILoggingBuilder | read | o.Logging |
Metrics | IMetricsBuilder | read | o.Metrics |
Services | IServiceCollection | read | o.Services |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ConfigureContainer | callMethod("ConfigureContainer",[p1,p2]) | void ConfigureContainer<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder> factory, Action<TContainerBuilder> configure = …) |
IHostApplicationLifetime interface
Microsoft.Extensions.Hosting.IHostApplicationLifetime · assembly Microsoft.Extensions.Hosting.Abstractions
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ApplicationStarted | CancellationToken | read | o.ApplicationStarted |
ApplicationStopping | CancellationToken | read | o.ApplicationStopping |
ApplicationStopped | CancellationToken | read | o.ApplicationStopped |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
StopApplication | callMethod("StopApplication",[]) | void StopApplication() |
IHostBuilder interface
Microsoft.Extensions.Hosting.IHostBuilder · assembly Microsoft.Extensions.Hosting.Abstractions
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Properties | IDictionary<object, object> | read | o.Properties |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Build | callMethod("Build",[]) | IHost Build() |
ConfigureAppConfiguration | callMethod("ConfigureAppConfiguration",[p1]) | IHostBuilder ConfigureAppConfiguration(Action<HostBuilderContext, IConfigurationBuilder> configureDelegate) |
ConfigureContainer | callMethod("ConfigureContainer",[p1]) | IHostBuilder ConfigureContainer<TContainerBuilder>(Action<HostBuilderContext, TContainerBuilder> configureDelegate) |
ConfigureHostConfiguration | callMethod("ConfigureHostConfiguration",[p1]) | IHostBuilder ConfigureHostConfiguration(Action<IConfigurationBuilder> configureDelegate) |
ConfigureServices | callMethod("ConfigureServices",[p1]) | IHostBuilder ConfigureServices(Action<HostBuilderContext, IServiceCollection> configureDelegate) |
UseServiceProviderFactory | callMethod("UseServiceProviderFactory",[p1]) | IHostBuilder UseServiceProviderFactory<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder> factory)IHostBuilder UseServiceProviderFactory<TContainerBuilder>(Func<HostBuilderContext, IServiceProviderFactory<TContainerBuilder>> factory) |
IHostedLifecycleService interface
Microsoft.Extensions.Hosting.IHostedLifecycleService · assembly Microsoft.Extensions.Hosting.Abstractions
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
StartedAsync | callMethod("StartedAsync",[p1]) | Task StartedAsync(CancellationToken cancellationToken) |
StartingAsync | callMethod("StartingAsync",[p1]) | Task StartingAsync(CancellationToken cancellationToken) |
StoppedAsync | callMethod("StoppedAsync",[p1]) | Task StoppedAsync(CancellationToken cancellationToken) |
StoppingAsync | callMethod("StoppingAsync",[p1]) | Task StoppingAsync(CancellationToken cancellationToken) |
IHostedService interface
Microsoft.Extensions.Hosting.IHostedService · assembly Microsoft.Extensions.Hosting.Abstractions
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
StartAsync | callMethod("StartAsync",[p1]) | Task StartAsync(CancellationToken cancellationToken) |
StopAsync | callMethod("StopAsync",[p1]) | Task StopAsync(CancellationToken cancellationToken) |
IHostEnvironment interface
Microsoft.Extensions.Hosting.IHostEnvironment · assembly Microsoft.Extensions.Hosting.Abstractions
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
EnvironmentName | string | read, write | o.EnvironmentName o.EnvironmentName = v |
ApplicationName | string | read, write | o.ApplicationName o.ApplicationName = v |
ContentRootPath | string | read, write | o.ContentRootPath o.ContentRootPath = v |
ContentRootFileProvider | IFileProvider | read, write | o.ContentRootFileProvider o.ContentRootFileProvider = v |
IHostLifetime interface
Microsoft.Extensions.Hosting.IHostLifetime · assembly Microsoft.Extensions.Hosting.Abstractions
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
StopAsync | callMethod("StopAsync",[p1]) | Task StopAsync(CancellationToken cancellationToken) |
WaitForStartAsync | callMethod("WaitForStartAsync",[p1]) | Task WaitForStartAsync(CancellationToken cancellationToken) |
WebHostBuilderOptions class
Microsoft.Extensions.Hosting.WebHostBuilderOptions · assembly Microsoft.AspNetCore.Hosting
Constructors
new WebHostBuilderOptions() |
Ring: new WebHostBuilderOptions(args) uses one constructor; the others are chosen by the parameter names: new WebHostBuilderOptions().@New([ :param = value ]) or dnNew("WebHostBuilderOptions",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
SuppressEnvironmentConfiguration | bool | read, write | o.SuppressEnvironmentConfiguration o.SuppressEnvironmentConfiguration = v |