9 writes to ConnectionContext
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (2)
87metricsContext ??= new ConnectionMetricsContext { ConnectionContext = connectionContext }; 225return new ConnectionMetricsContext { ConnectionContext = connectionContext };
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\KestrelMetrics.cs (1)
368ConnectionContext = connection,
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
Http1\Http1OutputProducerTests.cs (2)
121var metricsContext = new ConnectionMetricsContext { ConnectionContext = mockConnectionContext.Object }; 241metricsContext ?? new ConnectionMetricsContext { ConnectionContext = connectionContext },
src\Servers\Kestrel\shared\test\TestContextFactory.cs (2)
87metricsContext ??= new ConnectionMetricsContext { ConnectionContext = connectionContext }; 225return new ConnectionMetricsContext { ConnectionContext = connectionContext };
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (2)
87metricsContext ??= new ConnectionMetricsContext { ConnectionContext = connectionContext }; 225return new ConnectionMetricsContext { ConnectionContext = connectionContext };
4 references to ConnectionContext
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Infrastructure\KestrelMetrics.cs (2)
324var localEndpoint = metricsContext.ConnectionContext.LocalEndPoint; 343var transport = metricsContext.ConnectionContext is not MultiplexedConnectionContext ? "tcp" : "udp";
Middleware\HttpsConnectionMiddleware.cs (2)
254KestrelEventSource.Log.TlsHandshakeFailed(metricsContext.ConnectionContext.ConnectionId); 255KestrelEventSource.Log.TlsHandshakeStop(metricsContext.ConnectionContext, null);