Use friendly obsolete messages (#7831)
This commit is contained in:
parent
57092e96ac
commit
7d90d4d1e7
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue