3 implementations of ITlsHandshakeFeature
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
27ITlsHandshakeFeature,
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
35ITlsHandshakeFeature,
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\TlsConnectionFeature.cs (1)
15internal sealed class TlsConnectionFeature : ITlsConnectionFeature, ITlsApplicationProtocolFeature, ITlsHandshakeFeature, ISslStreamFeature
67 references to ITlsHandshakeFeature
Http2SampleApp (2)
Program.cs (2)
47var tlsFeature = context.Features.Get<ITlsHandshakeFeature>();
IIS.Tests (4)
TlsHandshakeFeatureTests.cs (4)
19ITlsHandshakeFeature tlsHandshakeFeature = null; 22tlsHandshakeFeature = ctx.Features.Get<ITlsHandshakeFeature>(); 65ITlsHandshakeFeature tlsHandshakeFeature = null; 68tlsHandshakeFeature = ctx.Features.Get<ITlsHandshakeFeature>();
InMemory.FunctionalTests (20)
Http2\Http2ConnectionTests.cs (2)
6035var tlsHandshakeMock = new Mock<ITlsHandshakeFeature>(); 6037_connection.ConnectionFeatures.Set<ITlsHandshakeFeature>(tlsHandshakeMock.Object);
HttpsConnectionMiddlewareTests.cs (18)
145var tlsFeature = context.Features.Get<ITlsHandshakeFeature>(); 185var tlsFeature = context.Features.Get<ITlsHandshakeFeature>(); 208var handshakeFeatureTcs = new TaskCompletionSource<ITlsHandshakeFeature>(TaskCreationOptions.RunContinuationsAsynchronously); 217var feature = connectionContext.Features.Get<ITlsHandshakeFeature>(); 241var handshakeFeature = await handshakeFeatureTcs.Task.DefaultTimeout(); 250var handshakeFeatureTcs = new TaskCompletionSource<ITlsHandshakeFeature>(TaskCreationOptions.RunContinuationsAsynchronously); 258var feature = connectionContext.Features.Get<ITlsHandshakeFeature>(); 275var handshakeFeature = await handshakeFeatureTcs.Task.DefaultTimeout(); 284ITlsHandshakeFeature capturedFeature = null; 293capturedFeature = context.Features.Get<ITlsHandshakeFeature>(); 309var handshakeFeatureTcs = new TaskCompletionSource<ITlsHandshakeFeature>(TaskCreationOptions.RunContinuationsAsynchronously); 319var handshakeFeature = connectionContext.Features.Get<ITlsHandshakeFeature>(); 335var handshakeFeature = await handshakeFeatureTcs.Task.DefaultTimeout();
Kestrel.SampleApp (4)
Startup.cs (4)
112var tlsHandshakeFeature = context.Features.Get<ITlsHandshakeFeature>(); 128var tlsHandshakeFeature = context.Features.Get<ITlsHandshakeFeature>();
Microsoft.AspNetCore.Server.HttpSys (11)
RequestProcessing\RequestContext.FeatureCollection.cs (10)
383internal ITlsHandshakeFeature? GetTlsHandshakeFeature() 596SslProtocols ITlsHandshakeFeature.Protocol => Request.Protocol; 598TlsCipherSuite? ITlsHandshakeFeature.NegotiatedCipherSuite => Request.NegotiatedCipherSuite; 601CipherAlgorithmType ITlsHandshakeFeature.CipherAlgorithm => Request.CipherAlgorithm; 603int ITlsHandshakeFeature.CipherStrength => Request.CipherStrength; 605HashAlgorithmType ITlsHandshakeFeature.HashAlgorithm => Request.HashAlgorithm; 607int ITlsHandshakeFeature.HashStrength => Request.HashStrength; 609ExchangeAlgorithmType ITlsHandshakeFeature.KeyExchangeAlgorithm => Request.KeyExchangeAlgorithm; 611int ITlsHandshakeFeature.KeyExchangeStrength => Request.KeyExchangeStrength; 614string ITlsHandshakeFeature.HostName => Request.SniHostName;
StandardFeatureCollection.cs (1)
48_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)
409SslProtocols ITlsHandshakeFeature.Protocol => Protocol; 411TlsCipherSuite? ITlsHandshakeFeature.NegotiatedCipherSuite => NegotiatedCipherSuite; 413string ITlsHandshakeFeature.HostName => SniHostName; 416CipherAlgorithmType ITlsHandshakeFeature.CipherAlgorithm => CipherAlgorithm; 419int ITlsHandshakeFeature.CipherStrength => CipherStrength; 422HashAlgorithmType ITlsHandshakeFeature.HashAlgorithm => HashAlgorithm; 425int ITlsHandshakeFeature.HashStrength => HashStrength; 428ExchangeAlgorithmType ITlsHandshakeFeature.KeyExchangeAlgorithm => KeyExchangeAlgorithm; 431int ITlsHandshakeFeature.KeyExchangeStrength => KeyExchangeStrength; 473internal 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)
1055if (ConnectionFeatures.Get<ITlsHandshakeFeature>() == null)
Internal\Http2\Http2Connection.cs (3)
504var tlsFeature = ConnectionFeatures.Get<ITlsHandshakeFeature>(); 546if (ConnectionFeatures.Get<ITlsHandshakeFeature>() != null)
Middleware\HttpsConnectionMiddleware.cs (1)
163context.Features.Set<ITlsHandshakeFeature>(feature);
NativeIISSample (2)
Startup.cs (2)
56var handshakeFeature = context.Features.Get<ITlsHandshakeFeature>();
TlsFeaturesObserve (2)
Program.cs (2)
34var tlsHandshakeFeature = context.Features.GetRequiredFeature<ITlsHandshakeFeature>();