<PackageReference Include="Microsoft.Extensions.Hosting" Version="11.0.0-preview.5.26302.115" />

Microsoft.Extensions.Hosting.Internal.Host

sealed class Host : IHost, IDisposable, IAsyncDisposable
public IServiceProvider Services { get; }

public Host(IServiceProvider services, IHostEnvironment hostEnvironment, PhysicalFileProvider defaultProvider, IHostApplicationLifetime applicationLifetime, ILogger<Host> logger, IHostLifetime hostLifetime, IOptions<HostOptions> options)

public void Dispose()

public Task StartAsync(CancellationToken cancellationToken = default)

Order: IHostLifetime.WaitForStartAsync Services.GetService{IStartupValidator}().Validate() IHostedLifecycleService.StartingAsync IHostedService.Start IHostedLifecycleService.StartedAsync IHostApplicationLifetime.ApplicationStarted

public Task StopAsync(CancellationToken cancellationToken = default)

Order: IHostedLifecycleService.StoppingAsync IHostApplicationLifetime.ApplicationStopping IHostedService.Stop IHostedLifecycleService.StoppedAsync IHostApplicationLifetime.ApplicationStopped IHostLifetime.StopAsync