fix netfx build
authorGeoff Kizer <geoffrek>
Tue, 12 Feb 2019 12:00:04 +0000 (04:00 -0800)
committerGeoff Kizer <geoffrek>
Tue, 12 Feb 2019 12:00:04 +0000 (04:00 -0800)
Commit migrated from https://github.com/dotnet/corefx/commit/0919bf7fde56a88f8cb2598d3b3709e6a75d279d

src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTestBase.cs

index c0b1568a0ad7c1491e4935fae33a4b7d8c609013..a50f62757b52f308f2277809c73a0410b4ba6614 100644 (file)
@@ -65,8 +65,12 @@ namespace System.Net.Http.Functional.Tests
             return field?.GetValue(handler);
         }
 
+#if netcoreapp
         protected LoopbackServerFactory LoopbackServerFactory => UseHttp2LoopbackServer ? 
                                                                 (LoopbackServerFactory)Http2LoopbackServerFactory.Singleton : 
                                                                 (LoopbackServerFactory)Http11LoopbackServerFactory.Singleton;
+#else
+        protected LoopbackServerFactory LoopbackServerFactory => Http11LoopbackServerFactory.Singleton;
+#endif
     }
 }