Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit f13c418

Browse files
committed
React to HttpAbstractions change: No features in .Internal namespace
- see issue aspnet/HttpAbstractions#561 and pull aspnet/HttpAbstractions#589
1 parent a220948 commit f13c418

File tree

2 files changed

+22
-23
lines changed

2 files changed

+22
-23
lines changed

src/Microsoft.AspNetCore.Server.Kestrel/Http/Frame.Generated.cs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
using System;
33
using System.Collections.Generic;
44

5-
namespace Microsoft.AspNetCore.Server.Kestrel.Http
5+
namespace Microsoft.AspNetCore.Server.Kestrel.Http
66
{
77
public partial class Frame
88
{
99
private static readonly Type IHttpRequestFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.IHttpRequestFeature);
1010
private static readonly Type IHttpResponseFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.IHttpResponseFeature);
1111
private static readonly Type IHttpRequestIdentifierFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.IHttpRequestIdentifierFeature);
12-
private static readonly Type IServiceProvidersFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.Internal.IServiceProvidersFeature);
12+
private static readonly Type IServiceProvidersFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.IServiceProvidersFeature);
1313
private static readonly Type IHttpRequestLifetimeFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.IHttpRequestLifetimeFeature);
1414
private static readonly Type IHttpConnectionFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature);
1515
private static readonly Type IHttpAuthenticationFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.Authentication.IHttpAuthenticationFeature);
16-
private static readonly Type IQueryFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.Internal.IQueryFeature);
17-
private static readonly Type IFormFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.Internal.IFormFeature);
16+
private static readonly Type IQueryFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.IQueryFeature);
17+
private static readonly Type IFormFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.IFormFeature);
1818
private static readonly Type IHttpUpgradeFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.IHttpUpgradeFeature);
19-
private static readonly Type IResponseCookiesFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.Internal.IResponseCookiesFeature);
20-
private static readonly Type IItemsFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.Internal.IItemsFeature);
19+
private static readonly Type IResponseCookiesFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.IResponseCookiesFeature);
20+
private static readonly Type IItemsFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.IItemsFeature);
2121
private static readonly Type ITlsConnectionFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.ITlsConnectionFeature);
2222
private static readonly Type IHttpWebSocketFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.IHttpWebSocketFeature);
2323
private static readonly Type ISessionFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.ISessionFeature);
@@ -75,7 +75,7 @@ private object FastFeatureGet(Type key)
7575
{
7676
return _currentIHttpRequestIdentifierFeature;
7777
}
78-
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.Internal.IServiceProvidersFeature))
78+
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.IServiceProvidersFeature))
7979
{
8080
return _currentIServiceProvidersFeature;
8181
}
@@ -91,23 +91,23 @@ private object FastFeatureGet(Type key)
9191
{
9292
return _currentIHttpAuthenticationFeature;
9393
}
94-
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.Internal.IQueryFeature))
94+
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.IQueryFeature))
9595
{
9696
return _currentIQueryFeature;
9797
}
98-
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.Internal.IFormFeature))
98+
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.IFormFeature))
9999
{
100100
return _currentIFormFeature;
101101
}
102102
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.IHttpUpgradeFeature))
103103
{
104104
return _currentIHttpUpgradeFeature;
105105
}
106-
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.Internal.IResponseCookiesFeature))
106+
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.IResponseCookiesFeature))
107107
{
108108
return _currentIResponseCookiesFeature;
109109
}
110-
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.Internal.IItemsFeature))
110+
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.IItemsFeature))
111111
{
112112
return _currentIItemsFeature;
113113
}
@@ -149,7 +149,7 @@ private void FastFeatureSet(Type key, object feature)
149149
_currentIHttpRequestIdentifierFeature = feature;
150150
return;
151151
}
152-
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.Internal.IServiceProvidersFeature))
152+
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.IServiceProvidersFeature))
153153
{
154154
_currentIServiceProvidersFeature = feature;
155155
return;
@@ -169,12 +169,12 @@ private void FastFeatureSet(Type key, object feature)
169169
_currentIHttpAuthenticationFeature = feature;
170170
return;
171171
}
172-
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.Internal.IQueryFeature))
172+
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.IQueryFeature))
173173
{
174174
_currentIQueryFeature = feature;
175175
return;
176176
}
177-
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.Internal.IFormFeature))
177+
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.IFormFeature))
178178
{
179179
_currentIFormFeature = feature;
180180
return;
@@ -184,12 +184,12 @@ private void FastFeatureSet(Type key, object feature)
184184
_currentIHttpUpgradeFeature = feature;
185185
return;
186186
}
187-
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.Internal.IResponseCookiesFeature))
187+
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.IResponseCookiesFeature))
188188
{
189189
_currentIResponseCookiesFeature = feature;
190190
return;
191191
}
192-
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.Internal.IItemsFeature))
192+
if (key == typeof(global::Microsoft.AspNetCore.Http.Features.IItemsFeature))
193193
{
194194
_currentIItemsFeature = feature;
195195
return;
@@ -233,7 +233,7 @@ private IEnumerable<KeyValuePair<Type, object>> FastEnumerable()
233233
}
234234
if (_currentIServiceProvidersFeature != null)
235235
{
236-
yield return new KeyValuePair<Type, object>(IServiceProvidersFeatureType, _currentIServiceProvidersFeature as global::Microsoft.AspNetCore.Http.Features.Internal.IServiceProvidersFeature);
236+
yield return new KeyValuePair<Type, object>(IServiceProvidersFeatureType, _currentIServiceProvidersFeature as global::Microsoft.AspNetCore.Http.Features.IServiceProvidersFeature);
237237
}
238238
if (_currentIHttpRequestLifetimeFeature != null)
239239
{
@@ -249,23 +249,23 @@ private IEnumerable<KeyValuePair<Type, object>> FastEnumerable()
249249
}
250250
if (_currentIQueryFeature != null)
251251
{
252-
yield return new KeyValuePair<Type, object>(IQueryFeatureType, _currentIQueryFeature as global::Microsoft.AspNetCore.Http.Features.Internal.IQueryFeature);
252+
yield return new KeyValuePair<Type, object>(IQueryFeatureType, _currentIQueryFeature as global::Microsoft.AspNetCore.Http.Features.IQueryFeature);
253253
}
254254
if (_currentIFormFeature != null)
255255
{
256-
yield return new KeyValuePair<Type, object>(IFormFeatureType, _currentIFormFeature as global::Microsoft.AspNetCore.Http.Features.Internal.IFormFeature);
256+
yield return new KeyValuePair<Type, object>(IFormFeatureType, _currentIFormFeature as global::Microsoft.AspNetCore.Http.Features.IFormFeature);
257257
}
258258
if (_currentIHttpUpgradeFeature != null)
259259
{
260260
yield return new KeyValuePair<Type, object>(IHttpUpgradeFeatureType, _currentIHttpUpgradeFeature as global::Microsoft.AspNetCore.Http.Features.IHttpUpgradeFeature);
261261
}
262262
if (_currentIResponseCookiesFeature != null)
263263
{
264-
yield return new KeyValuePair<Type, object>(IResponseCookiesFeatureType, _currentIResponseCookiesFeature as global::Microsoft.AspNetCore.Http.Features.Internal.IResponseCookiesFeature);
264+
yield return new KeyValuePair<Type, object>(IResponseCookiesFeatureType, _currentIResponseCookiesFeature as global::Microsoft.AspNetCore.Http.Features.IResponseCookiesFeature);
265265
}
266266
if (_currentIItemsFeature != null)
267267
{
268-
yield return new KeyValuePair<Type, object>(IItemsFeatureType, _currentIItemsFeature as global::Microsoft.AspNetCore.Http.Features.Internal.IItemsFeature);
268+
yield return new KeyValuePair<Type, object>(IItemsFeatureType, _currentIItemsFeature as global::Microsoft.AspNetCore.Http.Features.IItemsFeature);
269269
}
270270
if (_currentITlsConnectionFeature != null)
271271
{

tools/Microsoft.AspNetCore.Server.Kestrel.GeneratedCode/FrameFeatureCollection.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Collections.Generic;
33
using System.Linq;
44
using Microsoft.AspNetCore.Http.Features;
5-
using Microsoft.AspNetCore.Http.Features.Internal;
65
using Microsoft.AspNetCore.Http.Features.Authentication;
76

87
namespace Microsoft.AspNetCore.Server.Kestrel.GeneratedCode
@@ -67,7 +66,7 @@ public static string GeneratedFile()
6766
using System;
6867
using System.Collections.Generic;
6968
70-
namespace Microsoft.AspNetCore.Server.Kestrel.Http
69+
namespace Microsoft.AspNetCore.Server.Kestrel.Http
7170
{{
7271
public partial class Frame
7372
{{{Each(allFeatures, feature => $@"

0 commit comments

Comments
 (0)