We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db2038a commit 0b8a29eCopy full SHA for 0b8a29e
src/BenchmarksApps/TLS/HttpSys/Program.cs
@@ -1,4 +1,6 @@
1
using HttpSys;
2
+using Microsoft.AspNetCore.Connections.Features;
3
+using Microsoft.AspNetCore.Http.Features;
4
using Microsoft.AspNetCore.Server.HttpSys;
5
6
var builder = WebApplication.CreateBuilder(args);
@@ -87,6 +89,7 @@ void OnShutdown()
87
89
{
88
90
if (writeCertValidationEventsToConsole)
91
92
+ Console.WriteLine("Protocol: " + context.Features.Get<ITlsHandshakeFeature>()?.Protocol);
93
Console.WriteLine($"No client certificate provided. Fetching for connection {context.Connection.Id}");
94
}
95
0 commit comments