1 write to ServiceContext
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\BaseHttpConnectionContext.cs (1)
30ServiceContext = serviceContext;
45 references to ServiceContext
Microsoft.AspNetCore.Server.Kestrel.Core (45)
Internal\Http\Http1Connection.cs (2)
62_context.ServiceContext.Log, 654if (_context.ServiceContext.ServerOptions.AllowHostHeaderOverride)
Internal\Http\HttpProtocol.cs (1)
100public ServiceContext ServiceContext => _context.ServiceContext;
Internal\Http2\Http2Connection.cs (13)
154var httpLimits = context.ServiceContext.ServerOptions.Limits; 179context.ServiceContext.TimeProvider); 191_scheduleInline = context.ServiceContext.Scheduler == PipeScheduler.Inline; 204context.ServiceContext); 211public KestrelTrace Log => _context.ServiceContext.Log; 213public TimeProvider TimeProvider => _context.ServiceContext.TimeProvider; 215public KestrelServerLimits Limits => _context.ServiceContext.ServerOptions.Limits; 231var useException = _context.ServiceContext.ServerOptions.FinOnError || hasActiveStreams; 310var connectionWindow = _context.ServiceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 896_context.ServiceContext, 1344_context.ServiceContext.Metrics.RequestQueuedStart(_metricsContext, KestrelMetrics.Http2); 1581if (_totalParsedHeaderSize > _context.ServiceContext.ServerOptions.Limits.MaxRequestHeadersTotalSize * 2) 1843readerScheduler: _context.ServiceContext.Scheduler,
Internal\Http2\Http2OutputProducer.cs (2)
65_log = context.ServiceContext.Log; 66var scheduleInline = context.ServiceContext.Scheduler == PipeScheduler.Inline;
Internal\Http3\Http3Connection.cs (14)
62var httpLimits = context.ServiceContext.ServerOptions.Limits; 66_serverSettings.EnableWebTransport = Convert.ToUInt32(context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams); 69_serverSettings.H3Datagram = Convert.ToUInt32(context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams); 71if (context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams) 94private KestrelTrace Log => _context.ServiceContext.Log; 96public KestrelServerLimits Limits => _context.ServiceContext.ServerOptions.Limits; 258var serviceContext = _context.ServiceContext; 307var minDataRate = _context.ServiceContext.ServerOptions.Limits.MinResponseDataRate; 392if (_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams) 424if (_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams) 618_context.ServiceContext.Metrics.RequestQueuedStart(MetricsContext, KestrelMetrics.Http3); 625Debug.Assert(_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams); 666_context.ServiceContext, 918Debug.Assert(_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams);
Internal\Http3\Http3ControlStream.cs (3)
44var httpLimits = context.ServiceContext.ServerOptions.Limits; 57context.ServiceContext.Log, 70public KestrelTrace Log => _context.ServiceContext.Log;
Internal\Http3\Http3Stream.cs (7)
74public KestrelServerLimits Limits => _context.ServiceContext.ServerOptions.Limits; 112context.ServiceContext.ServerOptions.Limits.MinResponseDataRate, 114context.ServiceContext.Log, 123context.ServiceContext.Log); 126QPackDecoder = new QPackDecoder(_context.ServiceContext.ServerOptions.Limits.Http3.MaxRequestHeaderFieldSize); 830if (_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams && HttpRequestHeaders.HeaderProtocol.Count > 0) 1216if (!_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams)
Internal\HttpConnection.cs (2)
43_timeProvider = _context.ServiceContext.TimeProvider; 51private KestrelTrace Log => _context.ServiceContext.Log;
Internal\WebTransport\WebTransportStream.cs (1)
50_log = context.ServiceContext.Log;