44 references to GlobalHttpSettings
System.Net.Http (44)
System\Net\Http\DiagnosticsHandler.cs (1)
28Debug.Assert(GlobalHttpSettings.DiagnosticsHandler.EnableActivityPropagation);
System\Net\Http\HttpHandlerDefaults.cs (1)
13public static readonly int DefaultMaxConnectionsPerServer = GlobalHttpSettings.SocketsHttpHandler.MaxConnectionsPerServer;
System\Net\Http\Metrics\MetricsHandler.cs (2)
22Debug.Assert(GlobalHttpSettings.MetricsHandler.IsGloballyEnabled); 57Debug.Assert(GlobalHttpSettings.MetricsHandler.IsGloballyEnabled);
System\Net\Http\SocketsHttpHandler\ConnectionPool\ConnectionSetupDistributedTracing.cs (1)
89if (GlobalHttpSettings.DiagnosticsHandler.EnableActivityPropagation && DiagnosticsHandler.s_activitySource.HasListeners())
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (6)
91if (GlobalHttpSettings.SocketsHttpHandler.AllowHttp3) 233if (GlobalHttpSettings.SocketsHttpHandler.AllowHttp3 && _http3Enabled) 250if (GlobalHttpSettings.SocketsHttpHandler.AllowHttp3 && _http3Enabled) 407if (GlobalHttpSettings.SocketsHttpHandler.AllowHttp3 && // guard to enable trimming HTTP/3 support 920if (GlobalHttpSettings.SocketsHttpHandler.AllowHttp3 && _availableHttp3Connections is not null) 996if (GlobalHttpSettings.SocketsHttpHandler.AllowHttp3 && _availableHttp3Connections is not null)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (9)
65Debug.Assert(GlobalHttpSettings.SocketsHttpHandler.AllowHttp3); 133Debug.Assert(GlobalHttpSettings.SocketsHttpHandler.AllowHttp3); 208Debug.Assert(GlobalHttpSettings.SocketsHttpHandler.AllowHttp3); 247Debug.Assert(GlobalHttpSettings.SocketsHttpHandler.AllowHttp3); 330Debug.Assert(GlobalHttpSettings.SocketsHttpHandler.AllowHttp3); 361Debug.Assert(GlobalHttpSettings.SocketsHttpHandler.AllowHttp3); 483Debug.Assert(GlobalHttpSettings.SocketsHttpHandler.AllowHttp3); 526Debug.Assert(GlobalHttpSettings.SocketsHttpHandler.AllowHttp3); 562Debug.Assert(GlobalHttpSettings.SocketsHttpHandler.AllowHttp3);
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); 49if (HttpTelemetry.Log.IsEnabled() || GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) 53if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) 89int timeout = GlobalHttpSettings.SocketsHttpHandler.PendingConnectionTimeoutOnRequestCompletion;
System\Net\Http\SocketsHttpHandler\Http2StreamWindowManager.cs (4)
15private static double WindowScaleThresholdMultiplier => GlobalHttpSettings.SocketsHttpHandler.Http2StreamWindowScaleThresholdMultiplier; 16private static int MaxStreamWindowSize => GlobalHttpSettings.SocketsHttpHandler.MaxHttp2StreamWindowSize; 17private static bool WindowScalingEnabled => !GlobalHttpSettings.SocketsHttpHandler.DisableDynamicHttp2WindowSizing; 184e._state = GlobalHttpSettings.SocketsHttpHandler.DisableDynamicHttp2WindowSizing ? State.Disabled : State.Init;
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (2)
965_startTimestamp = HttpTelemetry.Log.IsEnabled() || (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled && _settings._metrics!.RequestsQueueDuration.Enabled) ? Stopwatch.GetTimestamp() : 0; 983if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled)
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (4)
59if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) 103if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.ConnectionClosed(durationMs: Environment.TickCount64 - _creationTickCount); 120if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.IdleStateChanged(idle: true); 126if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.IdleStateChanged(idle: false);
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (2)
309if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled || GlobalHttpSettings.DiagnosticsHandler.EnableActivityPropagation)
System\Net\Http\SocketsHttpHandler\HttpConnectionSettings.cs (3)
78bool allowHttp2 = GlobalHttpSettings.SocketsHttpHandler.AllowHttp2; 79bool allowHttp3 = GlobalHttpSettings.SocketsHttpHandler.AllowHttp3; 137if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled)
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (4)
287if (value < HttpHandlerDefaults.DefaultInitialHttp2StreamWindowSize || value > GlobalHttpSettings.SocketsHttpHandler.MaxHttp2StreamWindowSize) 292GlobalHttpSettings.SocketsHttpHandler.MaxHttp2StreamWindowSize); 529if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) 536if (GlobalHttpSettings.DiagnosticsHandler.EnableActivityPropagation && settings._activityHeadersPropagator is DistributedContextPropagator propagator)