diff --git a/src/BenchmarksApps/TLS/Kestrel/Program.cs b/src/BenchmarksApps/TLS/Kestrel/Program.cs index c20a95eac..4d218dede 100644 --- a/src/BenchmarksApps/TLS/Kestrel/Program.cs +++ b/src/BenchmarksApps/TLS/Kestrel/Program.cs @@ -111,7 +111,8 @@ bool AllowAnyCertificateValidationWithLogging(X509Certificate2 certificate, X509 Console.WriteLine("TLS: " + tlsHandshakeFeature.Protocol); Console.WriteLine("-----"); } - await next(); + + await next(context); }); } @@ -123,7 +124,7 @@ bool AllowAnyCertificateValidationWithLogging(X509Certificate2 certificate, X509 connectionIds.Add(context.Connection.Id); Console.WriteLine($"[stats] unique connections established: {connectionIds.Count}; fetched certificates: {fetchedCertsCounter}"); - await next(); + await next(context); }); } @@ -143,7 +144,7 @@ bool AllowAnyCertificateValidationWithLogging(X509Certificate2 certificate, X509 Console.WriteLine($"client certificate ({clientCert.Thumbprint}) already exists on the connection {context.Connection.Id}"); } - await next(); + await next(context); }); } @@ -206,11 +207,6 @@ static IPEndPoint CreateIPEndPoint(UrlPrefix urlPrefix) { switch (version.Trim().ToLower()) { -#pragma warning disable SYSLIB0039 // Type or member is obsolete - case "tls11": - protocols |= SslProtocols.Tls11; - break; -#pragma warning restore SYSLIB0039 // Type or member is obsolete case "tls12": protocols |= SslProtocols.Tls12; break;