void IFeatureCache.CheckFeaturesRevision() { if (_cachedFeaturesRevision != _features.Revision) { _connection = null; _tlsConnection = null; _cachedFeaturesRevision = _features.Revision; } }
public ClientEnvironment(IHttpContextAccessor httpContextAccessor) { Guard.ArgumentNotNull(httpContextAccessor, nameof(httpContextAccessor)); var connectionFeature = httpContextAccessor.HttpContext.Features.Get <IHttpConnectionFeature>(); _clientCertificateFeature = httpContextAccessor.HttpContext.Features.Get <ITlsConnectionFeature>(); if (connectionFeature != null) { this.IpAddress = connectionFeature.RemoteIpAddress; this.Port = connectionFeature.RemotePort; } }
public ClientCertBufferingFeature(ITlsConnectionFeature tlsFeature, HttpContext context) { _tlsFeature = tlsFeature; _context = context; }