3 implementations of ITlsHandshakeFeature
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
26ITlsHandshakeFeature,
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
34ITlsHandshakeFeature,
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\TlsConnectionFeature.cs (1)
15internal sealed class TlsConnectionFeature : ITlsConnectionFeature, ITlsApplicationProtocolFeature, ITlsHandshakeFeature, ISslStreamFeature
44 references to ITlsHandshakeFeature
Http2SampleApp (2)
Program.cs (2)
47var tlsFeature = context.Features.Get<ITlsHandshakeFeature>();
IIS.Tests (4)
TlsHandshakeFeatureTests.cs (4)
20ITlsHandshakeFeature tlsHandshakeFeature = null; 23tlsHandshakeFeature = ctx.Features.Get<ITlsHandshakeFeature>(); 66ITlsHandshakeFeature tlsHandshakeFeature = null; 69tlsHandshakeFeature = ctx.Features.Get<ITlsHandshakeFeature>();
InMemory.FunctionalTests (6)
Http2\Http2ConnectionTests.cs (2)
5888var tlsHandshakeMock = new Mock<ITlsHandshakeFeature>(); 5890_connection.ConnectionFeatures.Set<ITlsHandshakeFeature>(tlsHandshakeMock.Object);
HttpsConnectionMiddlewareTests.cs (4)
145var tlsFeature = context.Features.Get<ITlsHandshakeFeature>(); 185var tlsFeature = context.Features.Get<ITlsHandshakeFeature>();
Microsoft.AspNetCore.Server.HttpSys (10)
RequestProcessing\RequestContext.FeatureCollection.cs (9)
380internal ITlsHandshakeFeature? GetTlsHandshakeFeature() 593SslProtocols ITlsHandshakeFeature.Protocol => Request.Protocol; 596CipherAlgorithmType ITlsHandshakeFeature.CipherAlgorithm => Request.CipherAlgorithm; 598int ITlsHandshakeFeature.CipherStrength => Request.CipherStrength; 600HashAlgorithmType ITlsHandshakeFeature.HashAlgorithm => Request.HashAlgorithm; 602int ITlsHandshakeFeature.HashStrength => Request.HashStrength; 604ExchangeAlgorithmType ITlsHandshakeFeature.KeyExchangeAlgorithm => Request.KeyExchangeAlgorithm; 606int ITlsHandshakeFeature.KeyExchangeStrength => Request.KeyExchangeStrength; 609string ITlsHandshakeFeature.HostName => Request.SniHostName;
StandardFeatureCollection.cs (1)
46_featureFuncLookup[typeof(ITlsHandshakeFeature)] = ctx => ctx.GetTlsHandshakeFeature();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (6)
HttpsTests.cs (6)
136var tlsFeature = httpContext.Features.Get<ITlsHandshakeFeature>(); 156var tlsFeature = httpContext.Features.Get<ITlsHandshakeFeature>(); 208var tlsFeature = httpContext.Features.Get<ITlsHandshakeFeature>();
Microsoft.AspNetCore.Server.IIS (11)
Core\IISHttpContext.FeatureCollection.cs (10)
407SslProtocols ITlsHandshakeFeature.Protocol => Protocol; 409TlsCipherSuite? ITlsHandshakeFeature.NegotiatedCipherSuite => NegotiatedCipherSuite; 411string ITlsHandshakeFeature.HostName => SniHostName; 414CipherAlgorithmType ITlsHandshakeFeature.CipherAlgorithm => CipherAlgorithm; 417int ITlsHandshakeFeature.CipherStrength => CipherStrength; 420HashAlgorithmType ITlsHandshakeFeature.HashAlgorithm => HashAlgorithm; 423int ITlsHandshakeFeature.HashStrength => HashStrength; 426ExchangeAlgorithmType ITlsHandshakeFeature.KeyExchangeAlgorithm => KeyExchangeAlgorithm; 429int ITlsHandshakeFeature.KeyExchangeStrength => KeyExchangeStrength; 471internal ITlsHandshakeFeature? GetTlsHandshakeFeature()
Core\IISHttpContext.Features.cs (1)
23private static readonly Type ITlsHandshakeFeatureType = typeof(global::Microsoft.AspNetCore.Connections.Features.ITlsHandshakeFeature);
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Internal\Http\Http1Connection.cs (1)
856if (ConnectionFeatures.Get<ITlsHandshakeFeature>() == null)
Internal\Http2\Http2Connection.cs (3)
504var tlsFeature = ConnectionFeatures.Get<ITlsHandshakeFeature>(); 546if (ConnectionFeatures.Get<ITlsHandshakeFeature>() != null)
Middleware\HttpsConnectionMiddleware.cs (1)
152context.Features.Set<ITlsHandshakeFeature>(feature);