diff --git a/src/Hosting/Abstractions/src/IApplicationLifetime.cs b/src/Hosting/Abstractions/src/IApplicationLifetime.cs index bdba9b904f..38f3eb43c4 100644 --- a/src/Hosting/Abstractions/src/IApplicationLifetime.cs +++ b/src/Hosting/Abstractions/src/IApplicationLifetime.cs @@ -7,8 +7,12 @@ namespace Microsoft.AspNetCore.Hosting { /// /// Allows consumers to perform cleanup during a graceful shutdown. + /// + /// This type is obsolete and will be removed in a future version. + /// The recommended alternative is Microsoft.Extensions.Hosting.IHostApplicationLifetime. + /// /// - [System.Obsolete("Use Microsoft.Extensions.Hosting.IHostApplicationLifetime instead.", error: false)] + [System.Obsolete("This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Hosting.IHostApplicationLifetime.", error: false)] public interface IApplicationLifetime { /// diff --git a/src/Hosting/Abstractions/src/IHostingEnvironment.cs b/src/Hosting/Abstractions/src/IHostingEnvironment.cs index 864c52c7b6..18133a7f7e 100644 --- a/src/Hosting/Abstractions/src/IHostingEnvironment.cs +++ b/src/Hosting/Abstractions/src/IHostingEnvironment.cs @@ -7,8 +7,12 @@ namespace Microsoft.AspNetCore.Hosting { /// /// Provides information about the web hosting environment an application is running in. + /// + /// This type is obsolete and will be removed in a future version. + /// The recommended alternative is Microsoft.AspNetCore.Hosting.IWebHostEnvironment. + /// /// - [System.Obsolete("Use IWebHostEnvironment instead.", error: false)] + [System.Obsolete("This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.AspNetCore.Hosting.IWebHostEnvironment.", error: false)] public interface IHostingEnvironment { ///