@@ -80,7 +80,7 @@ public TestServer(IServiceProvider services, IFeatureCollection featureCollectio
80
80
/// For use with IWebHostBuilder.
81
81
/// </summary>
82
82
/// <param name="builder"></param>
83
- [ Obsolete ( "IWebHost, which this method uses, is obsolete. Use one of the ctors that takes an IServiceProvider instead." ) ]
83
+ [ Obsolete ( "IWebHost, which this method uses, is obsolete. Use one of the ctors that takes an IServiceProvider instead." , DiagnosticId = "ASPDEPR008" ) ]
84
84
public TestServer ( IWebHostBuilder builder )
85
85
: this ( builder , CreateTestFeatureCollection ( ) )
86
86
{
@@ -91,7 +91,7 @@ public TestServer(IWebHostBuilder builder)
91
91
/// </summary>
92
92
/// <param name="builder"></param>
93
93
/// <param name="featureCollection"></param>
94
- [ Obsolete ( "IWebHost, which this method uses, is obsolete. Use one of the ctors that takes an IServiceProvider instead." ) ]
94
+ [ Obsolete ( "IWebHost, which this method uses, is obsolete. Use one of the ctors that takes an IServiceProvider instead." , DiagnosticId = "ASPDEPR008" ) ]
95
95
public TestServer ( IWebHostBuilder builder , IFeatureCollection featureCollection )
96
96
{
97
97
ArgumentNullException . ThrowIfNull ( builder ) ;
@@ -113,7 +113,7 @@ public TestServer(IWebHostBuilder builder, IFeatureCollection featureCollection)
113
113
/// <summary>
114
114
/// Gets the <see cref="IWebHost" /> instance associated with the test server.
115
115
/// </summary>
116
- [ Obsolete ( "IWebHost is obsolete. Use IHost instead." ) ]
116
+ [ Obsolete ( "IWebHost is obsolete. Use IHost instead." , DiagnosticId = "ASPDEPR008" ) ]
117
117
public IWebHost Host
118
118
{
119
119
get
0 commit comments