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 } }