React to HttpAbstractions changes
This commit is contained in:
parent
5296d89337
commit
4f8ec86b54
|
|
@ -280,6 +280,16 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
|||
set { FastFeatureSet(key, value); }
|
||||
}
|
||||
|
||||
TFeature IFeatureCollection.Get<TFeature>()
|
||||
{
|
||||
return (TFeature)FastFeatureGet(typeof(TFeature));
|
||||
}
|
||||
|
||||
void IFeatureCollection.Set<TFeature>(TFeature instance)
|
||||
{
|
||||
FastFeatureSet(typeof(TFeature), instance);
|
||||
}
|
||||
|
||||
void IHttpResponseFeature.OnStarting(Func<object, Task> callback, object state)
|
||||
{
|
||||
OnStarting(callback, state);
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ namespace Microsoft.AspNet.Server.KestrelTests
|
|||
frame.Reset();
|
||||
|
||||
// Assert
|
||||
Assert.Equal("http", frame.Get<IHttpRequestFeature>().Scheme);
|
||||
Assert.Equal("http", ((IFeatureCollection)frame).Get<IHttpRequestFeature>().Scheme);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue