Skip to content

Commit 0b8a29e

Browse files
committed
go!
1 parent db2038a commit 0b8a29e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/BenchmarksApps/TLS/HttpSys/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
using HttpSys;
2+
using Microsoft.AspNetCore.Connections.Features;
3+
using Microsoft.AspNetCore.Http.Features;
24
using Microsoft.AspNetCore.Server.HttpSys;
35

46
var builder = WebApplication.CreateBuilder(args);
@@ -87,6 +89,7 @@ void OnShutdown()
8789
{
8890
if (writeCertValidationEventsToConsole)
8991
{
92+
Console.WriteLine("Protocol: " + context.Features.Get<ITlsHandshakeFeature>()?.Protocol);
9093
Console.WriteLine($"No client certificate provided. Fetching for connection {context.Connection.Id}");
9194
}
9295

0 commit comments

Comments
 (0)