Skip to content

Commit dd2c8d4

Browse files
authored
IHostApplicationLifetime (dotnet#14849)
1 parent c5c739a commit dd2c8d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aspnetcore/fundamentals/host/generic-host.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn about the .NET Core Generic Host, which is responsible for ap
55
monikerRange: '>= aspnetcore-2.1'
66
ms.author: riande
77
ms.custom: mvc
8-
ms.date: 07/01/2019
8+
ms.date: 10/05/2019
99
uid: fundamentals/host/generic-host
1010
---
1111
# .NET Generic Host
@@ -113,7 +113,7 @@ For more information on framework-provided services, see <xref:fundamentals/depe
113113

114114
Inject the <xref:Microsoft.Extensions.Hosting.IHostApplicationLifetime> (formerly `IApplicationLifetime`) service into any class to handle post-startup and graceful shutdown tasks. Three properties on the interface are cancellation tokens used to register app start and app stop event handler methods. The interface also includes a `StopApplication` method.
115115

116-
The following example is an `IHostedService` implementation that registers the `IApplicationLifetime` events:
116+
The following example is an `IHostedService` implementation that registers `IHostApplicationLifetime` events:
117117

118118
[!code-csharp[](generic-host/samples-snapshot/3.x/LifetimeEventsHostedService.cs?name=snippet_LifetimeEvents)]
119119

0 commit comments

Comments
 (0)