27 references to GlobalHttpSettings
System.Net.Http (27)
System\Net\Http\DiagnosticsHandler.cs (1)
27Debug.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)
21Debug.Assert(GlobalHttpSettings.MetricsHandler.IsGloballyEnabled); 55Debug.Assert(GlobalHttpSettings.MetricsHandler.IsGloballyEnabled);
System\Net\Http\SocketsHttpHandler\ConnectionPool\ConnectionSetupDistributedTracing.cs (1)
88if (GlobalHttpSettings.DiagnosticsHandler.EnableActivityPropagation && DiagnosticsHandler.s_activitySource.HasListeners())
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
90long 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); 48if (HttpTelemetry.Log.IsEnabled() || GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) 52if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) 88int 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 (1)
290if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled)
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (4)
59if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) 102if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.ConnectionClosed(durationMs: Environment.TickCount64 - _creationTickCount); 119if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.IdleStateChanged(idle: true); 125if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.IdleStateChanged(idle: false);
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)
282if (value < HttpHandlerDefaults.DefaultInitialHttp2StreamWindowSize || value > GlobalHttpSettings.SocketsHttpHandler.MaxHttp2StreamWindowSize) 287GlobalHttpSettings.SocketsHttpHandler.MaxHttp2StreamWindowSize); 534if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) 541if (GlobalHttpSettings.DiagnosticsHandler.EnableActivityPropagation && settings._activityHeadersPropagator is DistributedContextPropagator propagator)