Clean up some left overs (#2385)
This commit is contained in:
parent
2d8f3d95fe
commit
bcea8330c4
|
|
@ -199,27 +199,27 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal
|
||||||
|
|
||||||
TFeature IFeatureCollection.Get<TFeature>()
|
TFeature IFeatureCollection.Get<TFeature>()
|
||||||
{
|
{
|
||||||
if (typeof(TFeature) == IHttpConnectionFeatureType)
|
if (typeof(TFeature) == typeof(IHttpConnectionFeature))
|
||||||
{
|
{
|
||||||
return (TFeature)_currentIHttpConnectionFeature;
|
return (TFeature)_currentIHttpConnectionFeature;
|
||||||
}
|
}
|
||||||
else if (typeof(TFeature) == IConnectionIdFeatureType)
|
else if (typeof(TFeature) == typeof(IConnectionIdFeature))
|
||||||
{
|
{
|
||||||
return (TFeature)_currentIConnectionIdFeature;
|
return (TFeature)_currentIConnectionIdFeature;
|
||||||
}
|
}
|
||||||
else if (typeof(TFeature) == IConnectionTransportFeatureType)
|
else if (typeof(TFeature) == typeof(IConnectionTransportFeature))
|
||||||
{
|
{
|
||||||
return (TFeature)_currentIConnectionTransportFeature;
|
return (TFeature)_currentIConnectionTransportFeature;
|
||||||
}
|
}
|
||||||
else if (typeof(TFeature) == IMemoryPoolFeatureType)
|
else if (typeof(TFeature) == typeof(IMemoryPoolFeature))
|
||||||
{
|
{
|
||||||
return (TFeature)_currentIMemoryPoolFeature;
|
return (TFeature)_currentIMemoryPoolFeature;
|
||||||
}
|
}
|
||||||
else if (typeof(TFeature) == IApplicationTransportFeatureType)
|
else if (typeof(TFeature) == typeof(IApplicationTransportFeature))
|
||||||
{
|
{
|
||||||
return (TFeature)_currentIApplicationTransportFeature;
|
return (TFeature)_currentIApplicationTransportFeature;
|
||||||
}
|
}
|
||||||
else if (typeof(TFeature) == ITransportSchedulerFeatureType)
|
else if (typeof(TFeature) == typeof(ITransportSchedulerFeature))
|
||||||
{
|
{
|
||||||
return (TFeature)_currentITransportSchedulerFeature;
|
return (TFeature)_currentITransportSchedulerFeature;
|
||||||
}
|
}
|
||||||
|
|
@ -235,27 +235,27 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal
|
||||||
{
|
{
|
||||||
_featureRevision++;
|
_featureRevision++;
|
||||||
|
|
||||||
if (typeof(TFeature) == IHttpConnectionFeatureType)
|
if (typeof(TFeature) == typeof(IHttpConnectionFeature))
|
||||||
{
|
{
|
||||||
_currentIHttpConnectionFeature = instance;
|
_currentIHttpConnectionFeature = instance;
|
||||||
}
|
}
|
||||||
else if (typeof(TFeature) == IConnectionIdFeatureType)
|
else if (typeof(TFeature) == typeof(IConnectionIdFeature))
|
||||||
{
|
{
|
||||||
_currentIConnectionIdFeature = instance;
|
_currentIConnectionIdFeature = instance;
|
||||||
}
|
}
|
||||||
else if (typeof(TFeature) == IConnectionTransportFeatureType)
|
else if (typeof(TFeature) == typeof(IConnectionTransportFeature))
|
||||||
{
|
{
|
||||||
_currentIConnectionTransportFeature = instance;
|
_currentIConnectionTransportFeature = instance;
|
||||||
}
|
}
|
||||||
else if (typeof(TFeature) == IMemoryPoolFeatureType)
|
else if (typeof(TFeature) == typeof(IMemoryPoolFeature))
|
||||||
{
|
{
|
||||||
_currentIMemoryPoolFeature = instance;
|
_currentIMemoryPoolFeature = instance;
|
||||||
}
|
}
|
||||||
else if (typeof(TFeature) == IApplicationTransportFeatureType)
|
else if (typeof(TFeature) == typeof(IApplicationTransportFeature))
|
||||||
{
|
{
|
||||||
_currentIApplicationTransportFeature = instance;
|
_currentIApplicationTransportFeature = instance;
|
||||||
}
|
}
|
||||||
else if (typeof(TFeature) == ITransportSchedulerFeatureType)
|
else if (typeof(TFeature) == typeof(ITransportSchedulerFeature))
|
||||||
{
|
{
|
||||||
_currentITransportSchedulerFeature = instance;
|
_currentITransportSchedulerFeature = instance;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue