diff --git a/src/libraries/Microsoft.Extensions.Hosting.Abstractions/src/BackgroundService.cs b/src/libraries/Microsoft.Extensions.Hosting.Abstractions/src/BackgroundService.cs index 5e736c11fb8a78..f7802124ea60e6 100644 --- a/src/libraries/Microsoft.Extensions.Hosting.Abstractions/src/BackgroundService.cs +++ b/src/libraries/Microsoft.Extensions.Hosting.Abstractions/src/BackgroundService.cs @@ -29,6 +29,7 @@ public abstract class BackgroundService : IHostedService, IDisposable /// /// Triggered when is called. /// A that represents the long running operations. + /// See Worker Services in .NET for implementation guidelines. protected abstract Task ExecuteAsync(CancellationToken stoppingToken); /// diff --git a/src/libraries/Microsoft.Extensions.Hosting.Abstractions/src/IHost.cs b/src/libraries/Microsoft.Extensions.Hosting.Abstractions/src/IHost.cs index b0f2d86546d8e0..339037f317a5e0 100644 --- a/src/libraries/Microsoft.Extensions.Hosting.Abstractions/src/IHost.cs +++ b/src/libraries/Microsoft.Extensions.Hosting.Abstractions/src/IHost.cs @@ -13,12 +13,13 @@ namespace Microsoft.Extensions.Hosting public interface IHost : IDisposable { /// - /// The programs configured services. + /// Gets the services configured for the program (for example, using ). /// IServiceProvider Services { get; } /// - /// Start the program. + /// Starts the objects configured for the program. + /// The application will run until interrupted or until is called. /// /// Used to abort program start. /// A that will be completed when the starts. diff --git a/src/libraries/Microsoft.Extensions.Hosting/src/HostBuilder.cs b/src/libraries/Microsoft.Extensions.Hosting/src/HostBuilder.cs index 3827761382a135..5f0ad5f68d5244 100644 --- a/src/libraries/Microsoft.Extensions.Hosting/src/HostBuilder.cs +++ b/src/libraries/Microsoft.Extensions.Hosting/src/HostBuilder.cs @@ -121,6 +121,7 @@ public IHostBuilder ConfigureContainer(Action /// An initialized + /// Adds basic services to the host such as application lifetime, host environment, and logging. public IHost Build() { if (_hostBuilt)