| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- commit bcea8330c43188323bec1b83adba58766cf1c147
- Author: David Fowler <[email protected]>
- Date: Tue Mar 13 14:10:06 2018 -0700
- Clean up some left overs (#2385)
- diff --git a/src/Kestrel.Transport.Abstractions/Internal/TransportConnection.Features.cs b/src/Kestrel.Transport.Abstractions/Internal/TransportConnection.Features.cs
- index 275c80ba952..9e91865b86f 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<TFeature>()
- {
- - 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
|