Ensure PlatformBenchmark is compiled for .NET Core 3.0 (#9619)

This commit is contained in:
Ben Adams 2019-05-30 16:19:26 +01:00 committed by Andrew Stanton-Nurse
parent bf5e3024a5
commit 6f7a8ec4c0
1 changed files with 2 additions and 3 deletions

View File

@ -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<byte> target, Span<byte> path, Span<byte> query, Span<byte> 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 <TargetFramework>netcoreapp3.0</TargetFramework>
#endif
}
}