8 implementations of ITlsConnectionFeature
Microsoft.AspNetCore.Http (1)
Features\TlsConnectionFeature.cs (1)
11public class TlsConnectionFeature : ITlsConnectionFeature
Microsoft.AspNetCore.HttpOverrides (1)
CertificateForwardingFeature.cs (1)
11internal sealed class CertificateForwardingFeature : ITlsConnectionFeature
Microsoft.AspNetCore.Owin (1)
OwinFeatureCollection.cs (1)
29ITlsConnectionFeature,
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
27ITlsConnectionFeature,
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
34ITlsConnectionFeature,
Microsoft.AspNetCore.Server.IISIntegration (1)
ForwardedTlsConnectionFeature.cs (1)
11internal sealed class ForwardedTlsConnectionFeature : ITlsConnectionFeature
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\TlsConnectionFeature.cs (1)
15internal sealed class TlsConnectionFeature : ITlsConnectionFeature, ITlsApplicationProtocolFeature, ITlsHandshakeFeature, ISslStreamFeature
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Internal\QuicConnectionContext.FeatureCollection.cs (1)
10internal sealed partial class QuicConnectionContext : IProtocolErrorCodeFeature, ITlsConnectionFeature
44 references to ITlsConnectionFeature
Microsoft.AspNetCore.Http (3)
Internal\DefaultConnectionInfo.cs (3)
15private static readonly Func<IFeatureCollection, ITlsConnectionFeature> _newTlsConnectionFeature = f => new TlsConnectionFeature(); 43private ITlsConnectionFeature TlsConnectionFeature => 99public ITlsConnectionFeature? TlsConnection;
Microsoft.AspNetCore.HttpOverrides (1)
CertificateForwardingMiddleware.cs (1)
52httpContext.Features.Set<ITlsConnectionFeature>(new CertificateForwardingFeature(_logger, header, _options));
Microsoft.AspNetCore.Owin (6)
OwinEnvironment.cs (2)
445{ OwinConstants.CommonKeys.ClientCertificate, new FeatureMap<ITlsConnectionFeature>(feature => feature.ClientCertificate, (feature, value) => feature.ClientCertificate = (X509Certificate2)value) }, 446{ OwinConstants.CommonKeys.LoadClientCertAsync, new FeatureMap<ITlsConnectionFeature>(feature => new Func<Task>(() => feature.GetClientCertificateAsync(CancellationToken.None))) },
OwinFeatureCollection.cs (4)
256X509Certificate2 ITlsConnectionFeature.ClientCertificate 262async Task<X509Certificate2> ITlsConnectionFeature.GetClientCertificateAsync(CancellationToken cancellationToken) 349if (key == typeof(ITlsConnectionFeature)) 412yield return new KeyValuePair<Type, object>(typeof(ITlsConnectionFeature), this);
Microsoft.AspNetCore.Server.HttpSys (6)
RequestProcessing\RequestContext.FeatureCollection.cs (5)
330X509Certificate2? ITlsConnectionFeature.ClientCertificate 354Task<X509Certificate2?> ITlsConnectionFeature.GetClientCertificateAsync(CancellationToken cancellationToken) 361var tlsFeature = (ITlsConnectionFeature)this; 379internal ITlsConnectionFeature? GetTlsConnectionFeature()
StandardFeatureCollection.cs (1)
21{ typeof(ITlsConnectionFeature), ctx => ctx.GetTlsConnectionFeature() },
Microsoft.AspNetCore.Server.IIS (4)
Core\IISHttpContext.FeatureCollection.cs (3)
380Task<X509Certificate2?> ITlsConnectionFeature.GetClientCertificateAsync(CancellationToken cancellationToken) 382return Task.FromResult(((ITlsConnectionFeature)this).ClientCertificate); 385unsafe X509Certificate2? ITlsConnectionFeature.ClientCertificate
Core\IISHttpContext.Features.cs (1)
22private static readonly Type ITlsConnectionFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.ITlsConnectionFeature);
Microsoft.AspNetCore.Server.IISIntegration (1)
IISMiddleware.cs (1)
140httpContext.Features.Set<ITlsConnectionFeature>(new ForwardedTlsConnectionFeature(_logger, header));
Microsoft.AspNetCore.Server.Kestrel.Core (14)
Internal\Http\HttpProtocol.cs (1)
420var tlsFeature = ConnectionFeatures?[typeof(ITlsConnectionFeature)];
Internal\Http\HttpProtocol.Generated.cs (9)
70internal protected ITlsConnectionFeature? _currentITlsConnectionFeature; 268else if (key == typeof(ITlsConnectionFeature)) 420else if (key == typeof(ITlsConnectionFeature)) 422_currentITlsConnectionFeature = (ITlsConnectionFeature?)value; 574else if (typeof(TFeature) == typeof(ITlsConnectionFeature)) 576feature = Unsafe.As<ITlsConnectionFeature?, TFeature?>(ref _currentITlsConnectionFeature); 734else if (typeof(TFeature) == typeof(ITlsConnectionFeature)) 736_currentITlsConnectionFeature = Unsafe.As<TFeature?, ITlsConnectionFeature?>(ref feature); 884yield return new KeyValuePair<Type, object>(typeof(ITlsConnectionFeature), _currentITlsConnectionFeature);
Internal\HttpConnection.cs (1)
215var hasTls = _context.ConnectionFeatures.Get<ITlsConnectionFeature>() != null;
Middleware\HttpsConnectionMiddleware.cs (2)
147if (context.Features.Get<ITlsConnectionFeature>() != null) 162context.Features.Set<ITlsConnectionFeature>(feature);
TlsHandshakeCallbackContext.cs (1)
46/// The default is false. See <see cref="ITlsConnectionFeature.GetClientCertificateAsync"/>
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (9)
src\aspnetcore\src\Servers\Kestrel\shared\TransportMultiplexedConnection.Generated.cs (9)
33internal protected ITlsConnectionFeature? _currentITlsConnectionFeature; 149else if (key == typeof(ITlsConnectionFeature)) 193else if (key == typeof(ITlsConnectionFeature)) 195_currentITlsConnectionFeature = (ITlsConnectionFeature?)value; 239else if (typeof(TFeature) == typeof(ITlsConnectionFeature)) 241feature = Unsafe.As<ITlsConnectionFeature?, TFeature?>(ref _currentITlsConnectionFeature); 286else if (typeof(TFeature) == typeof(ITlsConnectionFeature)) 288_currentITlsConnectionFeature = Unsafe.As<TFeature?, ITlsConnectionFeature?>(ref feature); 328yield return new KeyValuePair<Type, object>(typeof(ITlsConnectionFeature), _currentITlsConnectionFeature);