Use friendly obsolete messages (#7831)

This commit is contained in:
Chris Ross 2019-02-22 08:40:34 -08:00 committed by GitHub
parent 57092e96ac
commit 7d90d4d1e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -7,8 +7,12 @@ namespace Microsoft.AspNetCore.Hosting
{
/// <summary>
/// Allows consumers to perform cleanup during a graceful shutdown.
/// <para>
/// This type is obsolete and will be removed in a future version.
/// The recommended alternative is Microsoft.Extensions.Hosting.IHostApplicationLifetime.
/// </para>
/// </summary>
[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
{
/// <summary>

View File

@ -7,8 +7,12 @@ namespace Microsoft.AspNetCore.Hosting
{
/// <summary>
/// Provides information about the web hosting environment an application is running in.
/// <para>
/// This type is obsolete and will be removed in a future version.
/// The recommended alternative is Microsoft.AspNetCore.Hosting.IWebHostEnvironment.
/// </para>
/// </summary>
[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
{
/// <summary>