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