1 write to ServerName
System.Net.Security (1)
System\Net\Security\SslClientHelloInfo.cs (1)
18ServerName = serverName;
7 references to ServerName
Certificate.Optional.Sample (1)
Program.cs (1)
40if (connectionContext.ClientHelloInfo.ServerName.Equals(HostWithoutCert, StringComparison.OrdinalIgnoreCase))
InMemory.FunctionalTests (1)
HttpsConnectionMiddlewareTests.cs (1)
338Assert.Equal("localhost", clientHelloInfo.ServerName);
Kestrel.SampleApp (2)
Startup.cs (2)
133var serverName = clientHelloInfo.ServerName; 136throw new AuthenticationException($"The endpoint is not configured for server name '{clientHelloInfo.ServerName}'.");
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\SniOptionsSelector.cs (1)
182var (options, clientCertificateMode) = sniOptionsSelector.GetOptions(callbackContext.Connection, callbackContext.ClientHelloInfo.ServerName);
Middleware\HttpsConnectionMiddleware.cs (1)
440feature.HostName = clientHelloInfo.ServerName;
System.Net.Quic (1)
System\Net\Quic\QuicListener.cs (1)
245await connection.FinishHandshakeAsync(options, clientHello.ServerName, cancellationToken).ConfigureAwait(false);