From bcea8330c43188323bec1b83adba58766cf1c147 Mon Sep 17 00:00:00 2001 From: David Fowler Date: Tue, 13 Mar 2018 14:10:06 -0700 Subject: [PATCH] Clean up some left overs (#2385) --- .../Internal/TransportConnection.Features.cs | 24 +++++++++---------- .../{Features => }/ConnectionBuilder.cs | 0 2 files changed, 12 insertions(+), 12 deletions(-) rename src/Protocols.Abstractions/{Features => }/ConnectionBuilder.cs (100%) diff --git a/src/Kestrel.Transport.Abstractions/Internal/TransportConnection.Features.cs b/src/Kestrel.Transport.Abstractions/Internal/TransportConnection.Features.cs index 275c80ba95..9e91865b86 100644 --- a/src/Kestrel.Transport.Abstractions/Internal/TransportConnection.Features.cs +++ b/src/Kestrel.Transport.Abstractions/Internal/TransportConnection.Features.cs @@ -199,27 +199,27 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal TFeature IFeatureCollection.Get() { - if (typeof(TFeature) == IHttpConnectionFeatureType) + if (typeof(TFeature) == typeof(IHttpConnectionFeature)) { return (TFeature)_currentIHttpConnectionFeature; } - else if (typeof(TFeature) == IConnectionIdFeatureType) + else if (typeof(TFeature) == typeof(IConnectionIdFeature)) { return (TFeature)_currentIConnectionIdFeature; } - else if (typeof(TFeature) == IConnectionTransportFeatureType) + else if (typeof(TFeature) == typeof(IConnectionTransportFeature)) { return (TFeature)_currentIConnectionTransportFeature; } - else if (typeof(TFeature) == IMemoryPoolFeatureType) + else if (typeof(TFeature) == typeof(IMemoryPoolFeature)) { return (TFeature)_currentIMemoryPoolFeature; } - else if (typeof(TFeature) == IApplicationTransportFeatureType) + else if (typeof(TFeature) == typeof(IApplicationTransportFeature)) { return (TFeature)_currentIApplicationTransportFeature; } - else if (typeof(TFeature) == ITransportSchedulerFeatureType) + else if (typeof(TFeature) == typeof(ITransportSchedulerFeature)) { return (TFeature)_currentITransportSchedulerFeature; } @@ -235,27 +235,27 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal { _featureRevision++; - if (typeof(TFeature) == IHttpConnectionFeatureType) + if (typeof(TFeature) == typeof(IHttpConnectionFeature)) { _currentIHttpConnectionFeature = instance; } - else if (typeof(TFeature) == IConnectionIdFeatureType) + else if (typeof(TFeature) == typeof(IConnectionIdFeature)) { _currentIConnectionIdFeature = instance; } - else if (typeof(TFeature) == IConnectionTransportFeatureType) + else if (typeof(TFeature) == typeof(IConnectionTransportFeature)) { _currentIConnectionTransportFeature = instance; } - else if (typeof(TFeature) == IMemoryPoolFeatureType) + else if (typeof(TFeature) == typeof(IMemoryPoolFeature)) { _currentIMemoryPoolFeature = instance; } - else if (typeof(TFeature) == IApplicationTransportFeatureType) + else if (typeof(TFeature) == typeof(IApplicationTransportFeature)) { _currentIApplicationTransportFeature = instance; } - else if (typeof(TFeature) == ITransportSchedulerFeatureType) + else if (typeof(TFeature) == typeof(ITransportSchedulerFeature)) { _currentITransportSchedulerFeature = instance; } diff --git a/src/Protocols.Abstractions/Features/ConnectionBuilder.cs b/src/Protocols.Abstractions/ConnectionBuilder.cs similarity index 100% rename from src/Protocols.Abstractions/Features/ConnectionBuilder.cs rename to src/Protocols.Abstractions/ConnectionBuilder.cs