1 <?xml version="1.0"?>
\r
4 <name>Microsoft.Extensions.Hosting.Abstractions</name>
\r
7 <member name="T:Microsoft.Extensions.Hosting.BackgroundService">
\r
9 Base class for implementing a long running <see cref="T:Microsoft.Extensions.Hosting.IHostedService"/>.
\r
12 <member name="M:Microsoft.Extensions.Hosting.BackgroundService.ExecuteAsync(System.Threading.CancellationToken)">
\r
14 This method is called when the <see cref="T:Microsoft.Extensions.Hosting.IHostedService"/> starts. The implementation should return a task that represents
\r
15 the lifetime of the long running operation(s) being performed.
\r
17 <param name="stoppingToken">Triggered when <see cref="M:Microsoft.Extensions.Hosting.IHostedService.StopAsync(System.Threading.CancellationToken)"/> is called.</param>
\r
18 <returns>A <see cref="T:System.Threading.Tasks.Task"/> that represents the long running operations.</returns>
\r
20 <member name="M:Microsoft.Extensions.Hosting.BackgroundService.StartAsync(System.Threading.CancellationToken)">
\r
22 Triggered when the application host is ready to start the service.
\r
24 <param name="cancellationToken">Indicates that the start process has been aborted.</param>
\r
26 <member name="M:Microsoft.Extensions.Hosting.BackgroundService.StopAsync(System.Threading.CancellationToken)">
\r
28 Triggered when the application host is performing a graceful shutdown.
\r
30 <param name="cancellationToken">Indicates that the shutdown process should no longer be graceful.</param>
\r
32 <member name="T:Microsoft.Extensions.Hosting.EnvironmentName">
\r
34 Commonly used environment names.
\r
36 This type is obsolete and will be removed in a future version.
\r
37 The recommended alternative is Microsoft.Extensions.Hosting.Environments.
\r
41 <member name="T:Microsoft.Extensions.Hosting.Environments">
\r
43 Commonly used environment names.
\r
46 <member name="T:Microsoft.Extensions.Hosting.HostBuilderContext">
\r
48 Context containing the common services on the <see cref="T:Microsoft.Extensions.Hosting.IHost" />. Some properties may be null until set by the <see cref="T:Microsoft.Extensions.Hosting.IHost" />.
\r
51 <member name="P:Microsoft.Extensions.Hosting.HostBuilderContext.HostingEnvironment">
\r
53 The <see cref="T:Microsoft.Extensions.Hosting.IHostEnvironment" /> initialized by the <see cref="T:Microsoft.Extensions.Hosting.IHost" />.
\r
56 <member name="P:Microsoft.Extensions.Hosting.HostBuilderContext.Configuration">
\r
58 The <see cref="T:Microsoft.Extensions.Configuration.IConfiguration" /> containing the merged configuration of the application and the <see cref="T:Microsoft.Extensions.Hosting.IHost" />.
\r
61 <member name="P:Microsoft.Extensions.Hosting.HostBuilderContext.Properties">
\r
63 A central location for sharing state between components during the host building process.
\r
66 <member name="T:Microsoft.Extensions.Hosting.HostDefaults">
\r
68 Constants for HostBuilder configuration keys.
\r
71 <member name="F:Microsoft.Extensions.Hosting.HostDefaults.ApplicationKey">
\r
73 The configuration key used to set <see cref="P:Microsoft.Extensions.Hosting.IHostEnvironment.ApplicationName"/>.
\r
76 <member name="F:Microsoft.Extensions.Hosting.HostDefaults.EnvironmentKey">
\r
78 The configuration key used to set <see cref="P:Microsoft.Extensions.Hosting.IHostEnvironment.EnvironmentName"/>.
\r
81 <member name="F:Microsoft.Extensions.Hosting.HostDefaults.ContentRootKey">
\r
83 The configuration key used to set <see cref="P:Microsoft.Extensions.Hosting.IHostEnvironment.ContentRootPath"/>
\r
84 and <see cref="P:Microsoft.Extensions.Hosting.IHostEnvironment.ContentRootFileProvider"/>.
\r
87 <member name="T:Microsoft.Extensions.Hosting.HostEnvironmentEnvExtensions">
\r
89 Extension methods for <see cref="T:Microsoft.Extensions.Hosting.IHostEnvironment"/>.
\r
92 <member name="M:Microsoft.Extensions.Hosting.HostEnvironmentEnvExtensions.IsDevelopment(Microsoft.Extensions.Hosting.IHostEnvironment)">
\r
94 Checks if the current host environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Development"/>.
\r
96 <param name="hostEnvironment">An instance of <see cref="T:Microsoft.Extensions.Hosting.IHostEnvironment"/>.</param>
\r
97 <returns>True if the environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Development"/>, otherwise false.</returns>
\r
99 <member name="M:Microsoft.Extensions.Hosting.HostEnvironmentEnvExtensions.IsStaging(Microsoft.Extensions.Hosting.IHostEnvironment)">
\r
101 Checks if the current host environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Staging"/>.
\r
103 <param name="hostEnvironment">An instance of <see cref="T:Microsoft.Extensions.Hosting.IHostEnvironment"/>.</param>
\r
104 <returns>True if the environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Staging"/>, otherwise false.</returns>
\r
106 <member name="M:Microsoft.Extensions.Hosting.HostEnvironmentEnvExtensions.IsProduction(Microsoft.Extensions.Hosting.IHostEnvironment)">
\r
108 Checks if the current host environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Production"/>.
\r
110 <param name="hostEnvironment">An instance of <see cref="T:Microsoft.Extensions.Hosting.IHostEnvironment"/>.</param>
\r
111 <returns>True if the environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Production"/>, otherwise false.</returns>
\r
113 <member name="M:Microsoft.Extensions.Hosting.HostEnvironmentEnvExtensions.IsEnvironment(Microsoft.Extensions.Hosting.IHostEnvironment,System.String)">
\r
115 Compares the current host environment name against the specified value.
\r
117 <param name="hostEnvironment">An instance of <see cref="T:Microsoft.Extensions.Hosting.IHostEnvironment"/>.</param>
\r
118 <param name="environmentName">Environment name to validate against.</param>
\r
119 <returns>True if the specified name is the same as the current environment, otherwise false.</returns>
\r
121 <member name="M:Microsoft.Extensions.Hosting.HostingAbstractionsHostBuilderExtensions.Start(Microsoft.Extensions.Hosting.IHostBuilder)">
\r
123 Builds and starts the host.
\r
125 <param name="hostBuilder">The <see cref="T:Microsoft.Extensions.Hosting.IHostBuilder"/> to start.</param>
\r
126 <returns>The started <see cref="T:Microsoft.Extensions.Hosting.IHost"/>.</returns>
\r
128 <member name="M:Microsoft.Extensions.Hosting.HostingAbstractionsHostBuilderExtensions.StartAsync(Microsoft.Extensions.Hosting.IHostBuilder,System.Threading.CancellationToken)">
\r
130 Builds and starts the host.
\r
132 <param name="hostBuilder">The <see cref="T:Microsoft.Extensions.Hosting.IHostBuilder"/> to start.</param>
\r
133 <param name="cancellationToken">A <see cref="T:System.Threading.CancellationToken"/> that can be used to cancel the start.</param>
\r
134 <returns>The started <see cref="T:Microsoft.Extensions.Hosting.IHost"/>.</returns>
\r
136 <member name="M:Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Start(Microsoft.Extensions.Hosting.IHost)">
\r
138 Starts the host synchronously.
\r
140 <param name="host">The <see cref="T:Microsoft.Extensions.Hosting.IHost"/> to start.</param>
\r
142 <member name="M:Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.StopAsync(Microsoft.Extensions.Hosting.IHost,System.TimeSpan)">
\r
144 Attempts to gracefully stop the host with the given timeout.
\r
146 <param name="host">The <see cref="T:Microsoft.Extensions.Hosting.IHost"/> to stop.</param>
\r
147 <param name="timeout">The timeout for stopping gracefully. Once expired the
\r
148 server may terminate any remaining active connections.</param>
\r
149 <returns>The <see cref="T:System.Threading.Tasks.Task"/> that represents the asynchronous operation.</returns>
\r
151 <member name="M:Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.WaitForShutdown(Microsoft.Extensions.Hosting.IHost)">
\r
153 Block the calling thread until shutdown is triggered via Ctrl+C or SIGTERM.
\r
155 <param name="host">The running <see cref="T:Microsoft.Extensions.Hosting.IHost"/>.</param>
\r
157 <member name="M:Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(Microsoft.Extensions.Hosting.IHost)">
\r
159 Runs an application and block the calling thread until host shutdown.
\r
161 <param name="host">The <see cref="T:Microsoft.Extensions.Hosting.IHost"/> to run.</param>
\r
163 <member name="M:Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(Microsoft.Extensions.Hosting.IHost,System.Threading.CancellationToken)">
\r
165 Runs an application and returns a Task that only completes when the token is triggered or shutdown is triggered.
\r
167 <param name="host">The <see cref="T:Microsoft.Extensions.Hosting.IHost"/> to run.</param>
\r
168 <param name="token">The token to trigger shutdown.</param>
\r
169 <returns>The <see cref="T:System.Threading.Tasks.Task"/> that represents the asynchronous operation.</returns>
\r
171 <member name="M:Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.WaitForShutdownAsync(Microsoft.Extensions.Hosting.IHost,System.Threading.CancellationToken)">
\r
173 Returns a Task that completes when shutdown is triggered via the given token.
\r
175 <param name="host">The running <see cref="T:Microsoft.Extensions.Hosting.IHost"/>.</param>
\r
176 <param name="token">The token to trigger shutdown.</param>
\r
177 <returns>The <see cref="T:System.Threading.Tasks.Task"/> that represents the asynchronous operation.</returns>
\r
179 <member name="T:Microsoft.Extensions.Hosting.HostingEnvironmentExtensions">
\r
181 Extension methods for <see cref="T:Microsoft.Extensions.Hosting.IHostingEnvironment"/>.
\r
184 <member name="M:Microsoft.Extensions.Hosting.HostingEnvironmentExtensions.IsDevelopment(Microsoft.Extensions.Hosting.IHostingEnvironment)">
\r
186 Checks if the current hosting environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Development"/>.
\r
188 <param name="hostingEnvironment">An instance of <see cref="T:Microsoft.Extensions.Hosting.IHostingEnvironment"/>.</param>
\r
189 <returns>True if the environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Development"/>, otherwise false.</returns>
\r
191 <member name="M:Microsoft.Extensions.Hosting.HostingEnvironmentExtensions.IsStaging(Microsoft.Extensions.Hosting.IHostingEnvironment)">
\r
193 Checks if the current hosting environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Staging"/>.
\r
195 <param name="hostingEnvironment">An instance of <see cref="T:Microsoft.Extensions.Hosting.IHostingEnvironment"/>.</param>
\r
196 <returns>True if the environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Staging"/>, otherwise false.</returns>
\r
198 <member name="M:Microsoft.Extensions.Hosting.HostingEnvironmentExtensions.IsProduction(Microsoft.Extensions.Hosting.IHostingEnvironment)">
\r
200 Checks if the current hosting environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Production"/>.
\r
202 <param name="hostingEnvironment">An instance of <see cref="T:Microsoft.Extensions.Hosting.IHostingEnvironment"/>.</param>
\r
203 <returns>True if the environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Production"/>, otherwise false.</returns>
\r
205 <member name="M:Microsoft.Extensions.Hosting.HostingEnvironmentExtensions.IsEnvironment(Microsoft.Extensions.Hosting.IHostingEnvironment,System.String)">
\r
207 Compares the current hosting environment name against the specified value.
\r
209 <param name="hostingEnvironment">An instance of <see cref="T:Microsoft.Extensions.Hosting.IHostingEnvironment"/>.</param>
\r
210 <param name="environmentName">Environment name to validate against.</param>
\r
211 <returns>True if the specified name is the same as the current environment, otherwise false.</returns>
\r
213 <member name="T:Microsoft.Extensions.Hosting.IApplicationLifetime">
\r
215 Allows consumers to perform cleanup during a graceful shutdown.
\r
217 This type is obsolete and will be removed in a future version.
\r
218 The recommended alternative is Microsoft.Extensions.Hosting.IHostApplicationLifetime.
\r
222 <member name="P:Microsoft.Extensions.Hosting.IApplicationLifetime.ApplicationStarted">
\r
224 Triggered when the application host has fully started and is about to wait
\r
225 for a graceful shutdown.
\r
228 <member name="P:Microsoft.Extensions.Hosting.IApplicationLifetime.ApplicationStopping">
\r
230 Triggered when the application host is performing a graceful shutdown.
\r
231 Requests may still be in flight. Shutdown will block until this event completes.
\r
234 <member name="P:Microsoft.Extensions.Hosting.IApplicationLifetime.ApplicationStopped">
\r
236 Triggered when the application host is performing a graceful shutdown.
\r
237 All requests should be complete at this point. Shutdown will block
\r
238 until this event completes.
\r
241 <member name="M:Microsoft.Extensions.Hosting.IApplicationLifetime.StopApplication">
\r
243 Requests termination of the current application.
\r
246 <member name="T:Microsoft.Extensions.Hosting.IHost">
\r
248 A program abstraction.
\r
251 <member name="P:Microsoft.Extensions.Hosting.IHost.Services">
\r
253 The programs configured services.
\r
256 <member name="M:Microsoft.Extensions.Hosting.IHost.StartAsync(System.Threading.CancellationToken)">
\r
260 <param name="cancellationToken">Used to abort program start.</param>
\r
261 <returns>A <see cref="T:System.Threading.Tasks.Task"/> that will be completed when the <see cref="T:Microsoft.Extensions.Hosting.IHost"/> starts.</returns>
\r
263 <member name="M:Microsoft.Extensions.Hosting.IHost.StopAsync(System.Threading.CancellationToken)">
\r
265 Attempts to gracefully stop the program.
\r
267 <param name="cancellationToken">Used to indicate when stop should no longer be graceful.</param>
\r
268 <returns>A <see cref="T:System.Threading.Tasks.Task"/> that will be completed when the <see cref="T:Microsoft.Extensions.Hosting.IHost"/> stops.</returns>
\r
270 <member name="T:Microsoft.Extensions.Hosting.IHostApplicationLifetime">
\r
272 Allows consumers to be notified of application lifetime events.
\r
275 <member name="P:Microsoft.Extensions.Hosting.IHostApplicationLifetime.ApplicationStarted">
\r
277 Triggered when the application host has fully started.
\r
280 <member name="P:Microsoft.Extensions.Hosting.IHostApplicationLifetime.ApplicationStopping">
\r
282 Triggered when the application host is performing a graceful shutdown.
\r
283 Shutdown will block until this event completes.
\r
286 <member name="P:Microsoft.Extensions.Hosting.IHostApplicationLifetime.ApplicationStopped">
\r
288 Triggered when the application host is performing a graceful shutdown.
\r
289 Shutdown will block until this event completes.
\r
292 <member name="M:Microsoft.Extensions.Hosting.IHostApplicationLifetime.StopApplication">
\r
294 Requests termination of the current application.
\r
297 <member name="T:Microsoft.Extensions.Hosting.IHostBuilder">
\r
299 A program initialization abstraction.
\r
302 <member name="P:Microsoft.Extensions.Hosting.IHostBuilder.Properties">
\r
304 A central location for sharing state between components during the host building process.
\r
307 <member name="M:Microsoft.Extensions.Hosting.IHostBuilder.ConfigureHostConfiguration(System.Action{Microsoft.Extensions.Configuration.IConfigurationBuilder})">
\r
309 Set up the configuration for the builder itself. This will be used to initialize the <see cref="T:Microsoft.Extensions.Hosting.IHostEnvironment"/>
\r
310 for use later in the build process. This can be called multiple times and the results will be additive.
\r
312 <param name="configureDelegate">The delegate for configuring the <see cref="T:Microsoft.Extensions.Configuration.IConfigurationBuilder"/> that will be used
\r
313 to construct the <see cref="T:Microsoft.Extensions.Configuration.IConfiguration"/> for the host.</param>
\r
314 <returns>The same instance of the <see cref="T:Microsoft.Extensions.Hosting.IHostBuilder"/> for chaining.</returns>
\r
316 <member name="M:Microsoft.Extensions.Hosting.IHostBuilder.ConfigureAppConfiguration(System.Action{Microsoft.Extensions.Hosting.HostBuilderContext,Microsoft.Extensions.Configuration.IConfigurationBuilder})">
\r
318 Sets up the configuration for the remainder of the build process and application. This can be called multiple times and
\r
319 the results will be additive. The results will be available at <see cref="P:Microsoft.Extensions.Hosting.HostBuilderContext.Configuration"/> for
\r
320 subsequent operations, as well as in <see cref="P:Microsoft.Extensions.Hosting.IHost.Services"/>.
\r
322 <param name="configureDelegate">The delegate for configuring the <see cref="T:Microsoft.Extensions.Configuration.IConfigurationBuilder"/> that will be used
\r
323 to construct the <see cref="T:Microsoft.Extensions.Configuration.IConfiguration"/> for the application.</param>
\r
324 <returns>The same instance of the <see cref="T:Microsoft.Extensions.Hosting.IHostBuilder"/> for chaining.</returns>
\r
326 <member name="M:Microsoft.Extensions.Hosting.IHostBuilder.ConfigureServices(System.Action{Microsoft.Extensions.Hosting.HostBuilderContext,Microsoft.Extensions.DependencyInjection.IServiceCollection})">
\r
328 Adds services to the container. This can be called multiple times and the results will be additive.
\r
330 <param name="configureDelegate">The delegate for configuring the <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> that will be used
\r
331 to construct the <see cref="T:System.IServiceProvider"/>.</param>
\r
332 <returns>The same instance of the <see cref="T:Microsoft.Extensions.Hosting.IHostBuilder"/> for chaining.</returns>
\r
334 <member name="M:Microsoft.Extensions.Hosting.IHostBuilder.UseServiceProviderFactory``1(Microsoft.Extensions.DependencyInjection.IServiceProviderFactory{``0})">
\r
336 Overrides the factory used to create the service provider.
\r
338 <typeparam name="TContainerBuilder">The type of builder.</typeparam>
\r
339 <param name="factory">The factory to register.</param>
\r
340 <returns>The same instance of the <see cref="T:Microsoft.Extensions.Hosting.IHostBuilder"/> for chaining.</returns>
\r
342 <member name="M:Microsoft.Extensions.Hosting.IHostBuilder.UseServiceProviderFactory``1(System.Func{Microsoft.Extensions.Hosting.HostBuilderContext,Microsoft.Extensions.DependencyInjection.IServiceProviderFactory{``0}})">
\r
344 Overrides the factory used to create the service provider.
\r
346 <typeparam name="TContainerBuilder">The type of builder.</typeparam>
\r
347 <returns>The same instance of the <see cref="T:Microsoft.Extensions.Hosting.IHostBuilder"/> for chaining.</returns>
\r
349 <member name="M:Microsoft.Extensions.Hosting.IHostBuilder.ConfigureContainer``1(System.Action{Microsoft.Extensions.Hosting.HostBuilderContext,``0})">
\r
351 Enables configuring the instantiated dependency container. This can be called multiple times and
\r
352 the results will be additive.
\r
354 <typeparam name="TContainerBuilder">The type of builder.</typeparam>
\r
355 <param name="configureDelegate">The delegate which configures the builder.</param>
\r
356 <returns>The same instance of the <see cref="T:Microsoft.Extensions.Hosting.IHostBuilder"/> for chaining.</returns>
\r
358 <member name="M:Microsoft.Extensions.Hosting.IHostBuilder.Build">
\r
360 Run the given actions to initialize the host. This can only be called once.
\r
362 <returns>An initialized <see cref="T:Microsoft.Extensions.Hosting.IHost"/>.</returns>
\r
364 <member name="T:Microsoft.Extensions.Hosting.IHostedService">
\r
366 Defines methods for objects that are managed by the host.
\r
369 <member name="M:Microsoft.Extensions.Hosting.IHostedService.StartAsync(System.Threading.CancellationToken)">
\r
371 Triggered when the application host is ready to start the service.
\r
373 <param name="cancellationToken">Indicates that the start process has been aborted.</param>
\r
375 <member name="M:Microsoft.Extensions.Hosting.IHostedService.StopAsync(System.Threading.CancellationToken)">
\r
377 Triggered when the application host is performing a graceful shutdown.
\r
379 <param name="cancellationToken">Indicates that the shutdown process should no longer be graceful.</param>
\r
381 <member name="T:Microsoft.Extensions.Hosting.IHostEnvironment">
\r
383 Provides information about the hosting environment an application is running in.
\r
386 <member name="P:Microsoft.Extensions.Hosting.IHostEnvironment.EnvironmentName">
\r
388 Gets or sets the name of the environment. The host automatically sets this property to the value of the
\r
389 of the "environment" key as specified in configuration.
\r
392 <member name="P:Microsoft.Extensions.Hosting.IHostEnvironment.ApplicationName">
\r
394 Gets or sets the name of the application. This property is automatically set by the host to the assembly containing
\r
395 the application entry point.
\r
398 <member name="P:Microsoft.Extensions.Hosting.IHostEnvironment.ContentRootPath">
\r
400 Gets or sets the absolute path to the directory that contains the application content files.
\r
403 <member name="P:Microsoft.Extensions.Hosting.IHostEnvironment.ContentRootFileProvider">
\r
405 Gets or sets an <see cref="T:Microsoft.Extensions.FileProviders.IFileProvider"/> pointing at <see cref="P:Microsoft.Extensions.Hosting.IHostEnvironment.ContentRootPath"/>.
\r
408 <member name="T:Microsoft.Extensions.Hosting.IHostingEnvironment">
\r
410 Provides information about the hosting environment an application is running in.
\r
412 This type is obsolete and will be removed in a future version.
\r
413 The recommended alternative is Microsoft.Extensions.Hosting.IHostEnvironment.
\r
417 <member name="P:Microsoft.Extensions.Hosting.IHostingEnvironment.EnvironmentName">
\r
419 Gets or sets the name of the environment. The host automatically sets this property to the value of the
\r
420 of the "environment" key as specified in configuration.
\r
423 <member name="P:Microsoft.Extensions.Hosting.IHostingEnvironment.ApplicationName">
\r
425 Gets or sets the name of the application. This property is automatically set by the host to the assembly containing
\r
426 the application entry point.
\r
429 <member name="P:Microsoft.Extensions.Hosting.IHostingEnvironment.ContentRootPath">
\r
431 Gets or sets the absolute path to the directory that contains the application content files.
\r
434 <member name="P:Microsoft.Extensions.Hosting.IHostingEnvironment.ContentRootFileProvider">
\r
436 Gets or sets an <see cref="T:Microsoft.Extensions.FileProviders.IFileProvider"/> pointing at <see cref="P:Microsoft.Extensions.Hosting.IHostingEnvironment.ContentRootPath"/>.
\r
439 <member name="M:Microsoft.Extensions.Hosting.IHostLifetime.WaitForStartAsync(System.Threading.CancellationToken)">
\r
441 Called at the start of <see cref="M:Microsoft.Extensions.Hosting.IHost.StartAsync(System.Threading.CancellationToken)"/> which will wait until it's complete before
\r
442 continuing. This can be used to delay startup until signaled by an external event.
\r
444 <param name="cancellationToken">Used to indicate when stop should no longer be graceful.</param>
\r
445 <returns>A <see cref="T:System.Threading.Tasks.Task"/>.</returns>
\r
447 <member name="M:Microsoft.Extensions.Hosting.IHostLifetime.StopAsync(System.Threading.CancellationToken)">
\r
449 Called from <see cref="M:Microsoft.Extensions.Hosting.IHost.StopAsync(System.Threading.CancellationToken)"/> to indicate that the host is stopping and it's time to shut down.
\r
451 <param name="cancellationToken">Used to indicate when stop should no longer be graceful.</param>
\r
452 <returns>A <see cref="T:System.Threading.Tasks.Task"/>.</returns>
\r
454 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionHostedServiceExtensions.AddHostedService``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
\r
456 Add an <see cref="T:Microsoft.Extensions.Hosting.IHostedService"/> registration for the given type.
\r
458 <typeparam name="THostedService">An <see cref="T:Microsoft.Extensions.Hosting.IHostedService"/> to register.</typeparam>
\r
459 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to register with.</param>
\r
460 <returns>The original <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</returns>
\r
462 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionHostedServiceExtensions.AddHostedService``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
\r
464 Add an <see cref="T:Microsoft.Extensions.Hosting.IHostedService"/> registration for the given type.
\r
466 <typeparam name="THostedService">An <see cref="T:Microsoft.Extensions.Hosting.IHostedService"/> to register.</typeparam>
\r
467 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to register with.</param>
\r
468 <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
\r
469 <returns>The original <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</returns>
\r