| File: Internal\Infrastructure\ConnectionMetricsContext.cs | Web Access |
| Project: src\aspnetcore\src\Servers\Kestrel\Core\src\Microsoft.AspNetCore.Server.Kestrel.Core.csproj (Microsoft.AspNetCore.Server.Kestrel.Core) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Connections; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure; internal sealed class ConnectionMetricsContext { public required BaseConnectionContext ConnectionContext { get; init; } public bool CurrentConnectionsCounterEnabled { get; init; } public bool ConnectionDurationEnabled { get; init; } public bool QueuedConnectionsCounterEnabled { get; init; } public bool QueuedRequestsCounterEnabled { get; init; } public bool CurrentUpgradedRequestsCounterEnabled { get; init; } public bool CurrentTlsHandshakesCounterEnabled { get; init; } public ConnectionEndReason? ConnectionEndReason { get; set; } }