46 references to GlobalHttpSettings
System.Net.Http (46)
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)
138Debug.Assert(GlobalHttpSettings.MetricsHandler.IsGloballyEnabled); 174Debug.Assert(GlobalHttpSettings.MetricsHandler.IsGloballyEnabled);
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (1)
377return SendWithAuthAsync(request, proxyUri, async, proxyCredentials, preAuthenticate: GlobalHttpSettings.SocketsHttpHandler.ProxyPreAuthenticate, isProxyAuth: true, doRequestAuth, pool, cancellationToken);
System\Net\Http\SocketsHttpHandler\ConnectionPool\ConnectionSetupDistributedTracing.cs (1)
86if (GlobalHttpSettings.DiagnosticsHandler.EnableActivityPropagation && DiagnosticsHandler.s_activitySource.HasListeners())
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (7)
98if (GlobalHttpSettings.SocketsHttpHandler.AllowHttp3) 242if (GlobalHttpSettings.SocketsHttpHandler.AllowHttp3 && _http3Enabled) 259if (GlobalHttpSettings.SocketsHttpHandler.AllowHttp3 && _http3Enabled) 421if (GlobalHttpSettings.SocketsHttpHandler.AllowHttp3 && // guard to enable trimming HTTP/3 support 987if (GlobalHttpSettings.SocketsHttpHandler.AllowHttp3) 1040if (GlobalHttpSettings.SocketsHttpHandler.AllowHttp3 && _availableHttp3Connections is not null) 1127if (GlobalHttpSettings.SocketsHttpHandler.AllowHttp3 && _availableHttp3Connections is not null)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (9)
66Debug.Assert(GlobalHttpSettings.SocketsHttpHandler.AllowHttp3); 134Debug.Assert(GlobalHttpSettings.SocketsHttpHandler.AllowHttp3); 209Debug.Assert(GlobalHttpSettings.SocketsHttpHandler.AllowHttp3); 248Debug.Assert(GlobalHttpSettings.SocketsHttpHandler.AllowHttp3); 332Debug.Assert(GlobalHttpSettings.SocketsHttpHandler.AllowHttp3); 363Debug.Assert(GlobalHttpSettings.SocketsHttpHandler.AllowHttp3); 485Debug.Assert(GlobalHttpSettings.SocketsHttpHandler.AllowHttp3); 528Debug.Assert(GlobalHttpSettings.SocketsHttpHandler.AllowHttp3); 564Debug.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)
961_startTimestamp = HttpTelemetry.Log.IsEnabled() || (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled && _settings._metrics!.RequestsQueueDuration.Enabled) ? Stopwatch.GetTimestamp() : 0; 979if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled)
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (4)
115if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) 163if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.ConnectionClosed(durationMs: Environment.TickCount64 - _creationTickCount); 180if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.IdleStateChanged(idle: true); 186if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.IdleStateChanged(idle: false);
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (2)
331if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled || GlobalHttpSettings.DiagnosticsHandler.EnableActivityPropagation)
System\Net\Http\SocketsHttpHandler\HttpConnectionSettings.cs (3)
80bool allowHttp2 = GlobalHttpSettings.SocketsHttpHandler.AllowHttp2; 81bool allowHttp3 = GlobalHttpSettings.SocketsHttpHandler.AllowHttp3; 140if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled)
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (4)
287if (value < HttpHandlerDefaults.DefaultInitialHttp2StreamWindowSize || value > GlobalHttpSettings.SocketsHttpHandler.MaxHttp2StreamWindowSize) 292GlobalHttpSettings.SocketsHttpHandler.MaxHttp2StreamWindowSize); 564if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) 571if (GlobalHttpSettings.DiagnosticsHandler.EnableActivityPropagation && settings._activityHeadersPropagator is DistributedContextPropagator propagator)