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)
33ITlsHandshakeFeature,
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\TlsConnectionFeature.cs (1)
14internal 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>(); 64ITlsHandshakeFeature tlsHandshakeFeature = null; 67tlsHandshakeFeature = ctx.Features.Get<ITlsHandshakeFeature>();
InMemory.FunctionalTests (6)
Http2\Http2ConnectionTests.cs (2)
5872var tlsHandshakeMock = new Mock<ITlsHandshakeFeature>(); 5874_connection.ConnectionFeatures.Set<ITlsHandshakeFeature>(tlsHandshakeMock.Object);
HttpsConnectionMiddlewareTests.cs (4)
145var tlsFeature = context.Features.Get<ITlsHandshakeFeature>(); 183var tlsFeature = context.Features.Get<ITlsHandshakeFeature>();
Microsoft.AspNetCore.Server.HttpSys (10)
RequestProcessing\RequestContext.FeatureCollection.cs (9)
380internal ITlsHandshakeFeature? GetTlsHandshakeFeature() 593SslProtocols ITlsHandshakeFeature.Protocol => Request.Protocol; 595CipherAlgorithmType ITlsHandshakeFeature.CipherAlgorithm => Request.CipherAlgorithm; 597int ITlsHandshakeFeature.CipherStrength => Request.CipherStrength; 599HashAlgorithmType ITlsHandshakeFeature.HashAlgorithm => Request.HashAlgorithm; 601int ITlsHandshakeFeature.HashStrength => Request.HashStrength; 603ExchangeAlgorithmType ITlsHandshakeFeature.KeyExchangeAlgorithm => Request.KeyExchangeAlgorithm; 605int ITlsHandshakeFeature.KeyExchangeStrength => Request.KeyExchangeStrength; 607string 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>(); 202var tlsFeature = httpContext.Features.Get<ITlsHandshakeFeature>();
Microsoft.AspNetCore.Server.IIS (11)
Core\IISHttpContext.FeatureCollection.cs (10)
406SslProtocols ITlsHandshakeFeature.Protocol => Protocol; 408TlsCipherSuite? ITlsHandshakeFeature.NegotiatedCipherSuite => NegotiatedCipherSuite; 410string ITlsHandshakeFeature.HostName => SniHostName; 412CipherAlgorithmType ITlsHandshakeFeature.CipherAlgorithm => CipherAlgorithm; 414int ITlsHandshakeFeature.CipherStrength => CipherStrength; 416HashAlgorithmType ITlsHandshakeFeature.HashAlgorithm => HashAlgorithm; 418int ITlsHandshakeFeature.HashStrength => HashStrength; 420ExchangeAlgorithmType ITlsHandshakeFeature.KeyExchangeAlgorithm => KeyExchangeAlgorithm; 422int ITlsHandshakeFeature.KeyExchangeStrength => KeyExchangeStrength; 464internal 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)
849if (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);