Use friendly obsolete messages (#7831)
This commit is contained in:
parent
57092e96ac
commit
7d90d4d1e7
|
|
@ -7,8 +7,12 @@ namespace Microsoft.AspNetCore.Hosting
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Allows consumers to perform cleanup during a graceful shutdown.
|
/// 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>
|
/// </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
|
public interface IApplicationLifetime
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,12 @@ namespace Microsoft.AspNetCore.Hosting
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides information about the web hosting environment an application is running in.
|
/// 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>
|
/// </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
|
public interface IHostingEnvironment
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue