1 write to ServiceContext
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\BaseHttpConnectionContext.cs (1)
29ServiceContext = serviceContext;
45 references to ServiceContext
Microsoft.AspNetCore.Server.Kestrel.Core (45)
Internal\Http\Http1Connection.cs (2)
62_context.ServiceContext.Log, 636if (_context.ServiceContext.ServerOptions.AllowHostHeaderOverride)
Internal\Http\HttpProtocol.cs (1)
93public ServiceContext ServiceContext => _context.ServiceContext;
Internal\Http2\Http2Connection.cs (13)
136var httpLimits = context.ServiceContext.ServerOptions.Limits; 160context.ServiceContext.TimeProvider); 172_scheduleInline = context.ServiceContext.Scheduler == PipeScheduler.Inline; 185context.ServiceContext); 192public KestrelTrace Log => _context.ServiceContext.Log; 194public TimeProvider TimeProvider => _context.ServiceContext.TimeProvider; 196public KestrelServerLimits Limits => _context.ServiceContext.ServerOptions.Limits; 208var useException = _context.ServiceContext.ServerOptions.FinOnError || _clientActiveStreamCount != 0; 271var connectionWindow = _context.ServiceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 817_context.ServiceContext, 1259_context.ServiceContext.Metrics.RequestQueuedStart(_metricsContext, KestrelMetrics.Http2); 1495if (_totalParsedHeaderSize > _context.ServiceContext.ServerOptions.Limits.MaxRequestHeadersTotalSize * 2) 1751readerScheduler: _context.ServiceContext.Scheduler,
Internal\Http2\Http2OutputProducer.cs (2)
58_log = context.ServiceContext.Log; 59var 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; 252var serviceContext = _context.ServiceContext; 301var minDataRate = _context.ServiceContext.ServerOptions.Limits.MinResponseDataRate; 385if (_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams) 417if (_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams) 598_context.ServiceContext.Metrics.RequestQueuedStart(MetricsContext, KestrelMetrics.Http3); 605Debug.Assert(_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams); 646_context.ServiceContext, 898Debug.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)
73public KestrelServerLimits Limits => _context.ServiceContext.ServerOptions.Limits; 111context.ServiceContext.ServerOptions.Limits.MinResponseDataRate, 113context.ServiceContext.Log, 122context.ServiceContext.Log); 125QPackDecoder = new QPackDecoder(_context.ServiceContext.ServerOptions.Limits.Http3.MaxRequestHeaderFieldSize); 827if (_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams && HttpRequestHeaders.HeaderProtocol.Count > 0) 1205if (!_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams)
Internal\HttpConnection.cs (2)
36_timeProvider = _context.ServiceContext.TimeProvider; 44private KestrelTrace Log => _context.ServiceContext.Log;
Internal\WebTransport\WebTransportStream.cs (1)
50_log = context.ServiceContext.Log;