From 7d90d4d1e74b5d58da5036178a693e3b155b658e Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Fri, 22 Feb 2019 08:40:34 -0800 Subject: [PATCH] Use friendly obsolete messages (#7831) --- src/Hosting/Abstractions/src/IApplicationLifetime.cs | 6 +++++- src/Hosting/Abstractions/src/IHostingEnvironment.cs | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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 { ///