Skip to content

Commit ede8b27

Browse files
Apply suggestions from code review
1 parent acf5c68 commit ede8b27

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

src/DefaultBuilder/src/WebHost.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Microsoft.AspNetCore;
2121
/// <summary>
2222
/// Provides convenience methods for creating instances of <see cref="IWebHost"/> and <see cref="IWebHostBuilder"/> with pre-configured defaults.
2323
/// </summary>
24-
[Obsolete("WebHost is obsolete. Use HostBuilder or WebApplicationBuilder instead.", DiagnosticId = "ASPDEPR008")]
24+
[Obsolete("WebHost is obsolete. Use HostBuilder or WebApplicationBuilder instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId = "ASPDEPR008")]
2525
public static class WebHost
2626
{
2727
/// <summary>

src/Hosting/Abstractions/src/IWebHost.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Microsoft.AspNetCore.Hosting;
88
/// <summary>
99
/// Represents a configured web host.
1010
/// </summary>
11-
[Obsolete("IWebHost is obsolete. Use IHost instead.", DiagnosticId = "ASPDEPR008")]
11+
[Obsolete("IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId = "ASPDEPR008")]
1212
public interface IWebHost : IDisposable
1313
{
1414
/// <summary>

src/Hosting/Abstractions/src/IWebHostBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public interface IWebHostBuilder
1515
/// <summary>
1616
/// Builds an <see cref="IWebHost"/> which hosts a web application.
1717
/// </summary>
18-
[Obsolete("IWebHost is obsolete. Use IHost instead.", DiagnosticId = "ASPDEPR008")]
18+
[Obsolete("IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId = "ASPDEPR008")]
1919
IWebHost Build();
2020

2121
/// <summary>

src/Hosting/Hosting/src/WebHostExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Microsoft.AspNetCore.Hosting;
1212
/// <summary>
1313
/// Contains extensions for managing the lifecycle of an <see cref="IWebHost"/>.
1414
/// </summary>
15-
[Obsolete("WebHostExtensions is obsolete. Use Host.CreateDefaultBuilder or WebApplication.CreateBuilder instead.", DiagnosticId = "ASPDEPR008")]
15+
[Obsolete("WebHostExtensions is obsolete. Use Host.CreateDefaultBuilder or WebApplication.CreateBuilder instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId = "ASPDEPR008")]
1616
public static class WebHostExtensions
1717
{
1818
/// <summary>

src/Hosting/TestHost/src/TestServer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public TestServer(IServiceProvider services, IFeatureCollection featureCollectio
8080
/// For use with IWebHostBuilder.
8181
/// </summary>
8282
/// <param name="builder"></param>
83-
[Obsolete("IWebHost, which this method uses, is obsolete. Use one of the ctors that takes an IServiceProvider instead.", DiagnosticId = "ASPDEPR008")]
83+
[Obsolete("IWebHost, which this method uses, is obsolete. Use one of the ctors that takes an IServiceProvider instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId = "ASPDEPR008")]
8484
public TestServer(IWebHostBuilder builder)
8585
: this(builder, CreateTestFeatureCollection())
8686
{
@@ -91,7 +91,7 @@ public TestServer(IWebHostBuilder builder)
9191
/// </summary>
9292
/// <param name="builder"></param>
9393
/// <param name="featureCollection"></param>
94-
[Obsolete("IWebHost, which this method uses, is obsolete. Use one of the ctors that takes an IServiceProvider instead.", DiagnosticId = "ASPDEPR008")]
94+
[Obsolete("IWebHost, which this method uses, is obsolete. Use one of the ctors that takes an IServiceProvider instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId = "ASPDEPR008")]
9595
public TestServer(IWebHostBuilder builder, IFeatureCollection featureCollection)
9696
{
9797
ArgumentNullException.ThrowIfNull(builder);
@@ -113,7 +113,7 @@ public TestServer(IWebHostBuilder builder, IFeatureCollection featureCollection)
113113
/// <summary>
114114
/// Gets the <see cref="IWebHost" /> instance associated with the test server.
115115
/// </summary>
116-
[Obsolete("IWebHost is obsolete. Use IHost instead.", DiagnosticId = "ASPDEPR008")]
116+
[Obsolete("IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId = "ASPDEPR008")]
117117
public IWebHost Host
118118
{
119119
get

src/Hosting/TestHost/src/WebHostBuilderExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static IWebHostBuilder UseTestServer(this IWebHostBuilder builder, Action
5151
/// </summary>
5252
/// <param name="host"></param>
5353
/// <returns></returns>
54-
[Obsolete("IWebHost is obsolete. Use IHost instead.", DiagnosticId = "ASPDEPR008")]
54+
[Obsolete("IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId = "ASPDEPR008")]
5555
public static TestServer GetTestServer(this IWebHost host)
5656
{
5757
return (TestServer)host.Services.GetRequiredService<IServer>();
@@ -62,7 +62,7 @@ public static TestServer GetTestServer(this IWebHost host)
6262
/// </summary>
6363
/// <param name="host"></param>
6464
/// <returns></returns>
65-
[Obsolete("IWebHost is obsolete. Use IHost instead.", DiagnosticId = "ASPDEPR008")]
65+
[Obsolete("IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId = "ASPDEPR008")]
6666
public static HttpClient GetTestClient(this IWebHost host)
6767
{
6868
return host.GetTestServer().CreateClient();

src/Hosting/WindowsServices/src/WebHostService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Microsoft.AspNetCore.Hosting.WindowsServices;
1212
/// Provides an implementation of a Windows service that hosts ASP.NET Core.
1313
/// </summary>
1414
[DesignerCategory("Code")]
15-
[Obsolete("Use UseWindowsService and AddHostedService instead.", DiagnosticId = "ASPDEPR009")]
15+
[Obsolete("Use UseWindowsService and AddHostedService instead. For more information, visit https://aka.ms/aspnet/deprecate/009.", DiagnosticId = "ASPDEPR009")]
1616
public class WebHostService : ServiceBase
1717
{
1818
private readonly IWebHost _host;

src/Hosting/WindowsServices/src/WebHostWindowsServiceExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Microsoft.AspNetCore.Hosting.WindowsServices;
88
/// <summary>
99
/// Extensions to <see cref="IWebHost"/> for hosting inside a Windows service.
1010
/// </summary>
11-
[Obsolete("Use UseWindowsService and AddHostedService instead.", DiagnosticId = "ASPDEPR009")]
11+
[Obsolete("Use UseWindowsService and AddHostedService instead. For more information, visit https://aka.ms/aspnet/deprecate/009.", DiagnosticId = "ASPDEPR009")]
1212
public static class WebHostWindowsServiceExtensions
1313
{
1414
/// <summary>

src/Mvc/Mvc.Testing/src/WebApplicationFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ private static void EnsureDepsFile()
577577
/// <param name="builder">The <see cref="IWebHostBuilder"/> used to
578578
/// create the server.</param>
579579
/// <returns>The <see cref="TestServer"/> with the bootstrapped application.</returns>
580-
[Obsolete("IWebHost, which this method uses, is obsolete. Use one of the ctors that takes an IServiceProvider instead.", DiagnosticId = "ASPDEPR008")]
580+
[Obsolete("IWebHost, which this method uses, is obsolete. Use one of the overloads that takes an IServiceProvider instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId = "ASPDEPR008")]
581581
protected virtual TestServer CreateServer(IWebHostBuilder builder) => new(builder);
582582

583583
/// <summary>

0 commit comments

Comments
 (0)