27 references to GlobalHttpSettings
System.Net.Http (27)
System\Net\Http\DiagnosticsHandler.cs (1)
27
Debug.Assert(
GlobalHttpSettings
.DiagnosticsHandler.EnableActivityPropagation);
System\Net\Http\HttpHandlerDefaults.cs (1)
13
public static readonly int DefaultMaxConnectionsPerServer =
GlobalHttpSettings
.SocketsHttpHandler.MaxConnectionsPerServer;
System\Net\Http\Metrics\MetricsHandler.cs (2)
21
Debug.Assert(
GlobalHttpSettings
.MetricsHandler.IsGloballyEnabled);
55
Debug.Assert(
GlobalHttpSettings
.MetricsHandler.IsGloballyEnabled);
System\Net\Http\SocketsHttpHandler\ConnectionPool\ConnectionSetupDistributedTracing.cs (1)
88
if (
GlobalHttpSettings
.DiagnosticsHandler.EnableActivityPropagation && DiagnosticsHandler.s_activitySource.HasListeners())
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
90
long queueStartingTimestamp = HttpTelemetry.Log.IsEnabled() || (
GlobalHttpSettings
.MetricsHandler.IsGloballyEnabled && Settings._metrics!.RequestsQueueDuration.Enabled)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionWaiter.cs (5)
23
|| (
GlobalHttpSettings
.MetricsHandler.IsGloballyEnabled && pool.Settings._metrics!.RequestsQueueDuration.Enabled)
24
|| (
GlobalHttpSettings
.DiagnosticsHandler.EnableActivityPropagation && Activity.Current?.Source == DiagnosticsHandler.s_activitySource);
48
if (HttpTelemetry.Log.IsEnabled() ||
GlobalHttpSettings
.MetricsHandler.IsGloballyEnabled)
52
if (
GlobalHttpSettings
.MetricsHandler.IsGloballyEnabled)
88
int timeout =
GlobalHttpSettings
.SocketsHttpHandler.PendingConnectionTimeoutOnRequestCompletion;
System\Net\Http\SocketsHttpHandler\Http2StreamWindowManager.cs (4)
15
private static double WindowScaleThresholdMultiplier =>
GlobalHttpSettings
.SocketsHttpHandler.Http2StreamWindowScaleThresholdMultiplier;
16
private static int MaxStreamWindowSize =>
GlobalHttpSettings
.SocketsHttpHandler.MaxHttp2StreamWindowSize;
17
private static bool WindowScalingEnabled => !
GlobalHttpSettings
.SocketsHttpHandler.DisableDynamicHttp2WindowSizing;
184
e._state =
GlobalHttpSettings
.SocketsHttpHandler.DisableDynamicHttp2WindowSizing ? State.Disabled : State.Init;
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (1)
290
if (
GlobalHttpSettings
.MetricsHandler.IsGloballyEnabled)
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (4)
59
if (
GlobalHttpSettings
.MetricsHandler.IsGloballyEnabled)
102
if (
GlobalHttpSettings
.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.ConnectionClosed(durationMs: Environment.TickCount64 - _creationTickCount);
119
if (
GlobalHttpSettings
.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.IdleStateChanged(idle: true);
125
if (
GlobalHttpSettings
.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.IdleStateChanged(idle: false);
System\Net\Http\SocketsHttpHandler\HttpConnectionSettings.cs (3)
78
bool allowHttp2 =
GlobalHttpSettings
.SocketsHttpHandler.AllowHttp2;
79
bool allowHttp3 =
GlobalHttpSettings
.SocketsHttpHandler.AllowHttp3;
137
if (
GlobalHttpSettings
.MetricsHandler.IsGloballyEnabled)
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (4)
282
if (value < HttpHandlerDefaults.DefaultInitialHttp2StreamWindowSize || value >
GlobalHttpSettings
.SocketsHttpHandler.MaxHttp2StreamWindowSize)
287
GlobalHttpSettings
.SocketsHttpHandler.MaxHttp2StreamWindowSize);
534
if (
GlobalHttpSettings
.MetricsHandler.IsGloballyEnabled)
541
if (
GlobalHttpSettings
.DiagnosticsHandler.EnableActivityPropagation && settings._activityHeadersPropagator is DistributedContextPropagator propagator)