From 6f7a8ec4c06759c77edad47acb588daac726ae78 Mon Sep 17 00:00:00 2001 From: Ben Adams Date: Thu, 30 May 2019 16:19:26 +0100 Subject: [PATCH] Ensure PlatformBenchmark is compiled for .NET Core 3.0 (#9619) --- .../BenchmarkApplication.HttpConnection.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Servers/Kestrel/perf/PlatformBenchmarks/BenchmarkApplication.HttpConnection.cs b/src/Servers/Kestrel/perf/PlatformBenchmarks/BenchmarkApplication.HttpConnection.cs index 1d5cc6f55d..bda3e005a8 100644 --- a/src/Servers/Kestrel/perf/PlatformBenchmarks/BenchmarkApplication.HttpConnection.cs +++ b/src/Servers/Kestrel/perf/PlatformBenchmarks/BenchmarkApplication.HttpConnection.cs @@ -125,11 +125,9 @@ namespace PlatformBenchmarks { } -#if NETCOREAPP3_0 public void OnHeadersComplete() { } -#endif public async ValueTask OnReadCompletedAsync() { @@ -182,9 +180,10 @@ namespace PlatformBenchmarks public void OnStartLine(HttpMethod method, HttpVersion version, Span target, Span path, Span query, Span customMethod, bool pathEncoded) => RequestHandler.OnStartLine(method, version, target, path, query, customMethod, pathEncoded); -#if NETCOREAPP3_0 public void OnHeadersComplete() => RequestHandler.OnHeadersComplete(); +#if !NETCOREAPP3_0 +#error This is a .NET Core 3.0 application and needs to be compiled for netcoreapp3.0 #endif } }