KestrelHttpServer 716 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. commit bcea8330c43188323bec1b83adba58766cf1c147
  2. Author: David Fowler <[email protected]>
  3. Date: Tue Mar 13 14:10:06 2018 -0700
  4. Clean up some left overs (#2385)
  5. diff --git a/src/Kestrel.Transport.Abstractions/Internal/TransportConnection.Features.cs b/src/Kestrel.Transport.Abstractions/Internal/TransportConnection.Features.cs
  6. index 275c80ba952..9e91865b86f 100644
  7. --- a/src/Kestrel.Transport.Abstractions/Internal/TransportConnection.Features.cs
  8. +++ b/src/Kestrel.Transport.Abstractions/Internal/TransportConnection.Features.cs
  9. @@ -199,27 +199,27 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal
  10. TFeature IFeatureCollection.Get<TFeature>()
  11. {
  12. - if (typeof(TFeature) == IHttpConnectionFeatureType)
  13. + if (typeof(TFeature) == typeof(IHttpConnectionFeature))
  14. {
  15. return (TFeature)_currentIHttpConnectionFeature;
  16. }
  17. - else if (typeof(TFeature) == IConnectionIdFeatureType)
  18. + else if (typeof(TFeature) == typeof(IConnectionIdFeature))
  19. {
  20. return (TFeature)_currentIConnectionIdFeature;
  21. }
  22. - else if (typeof(TFeature) == IConnectionTransportFeatureType)
  23. + else if (typeof(TFeature) == typeof(IConnectionTransportFeature))
  24. {
  25. return (TFeature)_currentIConnectionTransportFeature;
  26. }
  27. - else if (typeof(TFeature) == IMemoryPoolFeatureType)
  28. + else if (typeof(TFeature) == typeof(IMemoryPoolFeature))
  29. {
  30. return (TFeature)_currentIMemoryPoolFeature;
  31. }
  32. - else if (typeof(TFeature) == IApplicationTransportFeatureType)
  33. + else if (typeof(TFeature) == typeof(IApplicationTransportFeature))
  34. {
  35. return (TFeature)_currentIApplicationTransportFeature;
  36. }
  37. - else if (typeof(TFeature) == ITransportSchedulerFeatureType)
  38. + else if (typeof(TFeature) == typeof(ITransportSchedulerFeature))
  39. {
  40. return (TFeature)_currentITransportSchedulerFeature;
  41. }
  42. @@ -235,27 +235,27 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal
  43. {
  44. _featureRevision++;
  45. - if (typeof(TFeature) == IHttpConnectionFeatureType)
  46. + if (typeof(TFeature) == typeof(IHttpConnectionFeature))
  47. {
  48. _currentIHttpConnectionFeature = instance;
  49. }
  50. - else if (typeof(TFeature) == IConnectionIdFeatureType)
  51. + else if (typeof(TFeature) == typeof(IConnectionIdFeature))
  52. {
  53. _currentIConnectionIdFeature = instance;
  54. }
  55. - else if (typeof(TFeature) == IConnectionTransportFeatureType)
  56. + else if (typeof(TFeature) == typeof(IConnectionTransportFeature))
  57. {
  58. _currentIConnectionTransportFeature = instance;
  59. }
  60. - else if (typeof(TFeature) == IMemoryPoolFeatureType)
  61. + else if (typeof(TFeature) == typeof(IMemoryPoolFeature))
  62. {
  63. _currentIMemoryPoolFeature = instance;
  64. }
  65. - else if (typeof(TFeature) == IApplicationTransportFeatureType)
  66. + else if (typeof(TFeature) == typeof(IApplicationTransportFeature))
  67. {
  68. _currentIApplicationTransportFeature = instance;
  69. }
  70. - else if (typeof(TFeature) == ITransportSchedulerFeatureType)
  71. + else if (typeof(TFeature) == typeof(ITransportSchedulerFeature))
  72. {
  73. _currentITransportSchedulerFeature = instance;
  74. }
  75. diff --git a/src/Protocols.Abstractions/Features/ConnectionBuilder.cs b/src/Protocols.Abstractions/ConnectionBuilder.cs
  76. similarity index 100%
  77. rename from src/Protocols.Abstractions/Features/ConnectionBuilder.cs
  78. rename to src/Protocols.Abstractions/ConnectionBuilder.cs