1 write to _serviceContext
InMemory.FunctionalTests (1)
Http2\Http2TestBase.cs (1)
397_serviceContext = new TestServiceContext(LoggerFactory)
93 references to _serviceContext
InMemory.FunctionalTests (93)
Http2\Http2ConnectionTests.cs (26)
655_serviceContext.ServerOptions.Limits.MinRequestBodyDataRate = null; 748_serviceContext.ServerOptions.Limits.Http2.MaxFrameSize = length; 835var initialStreamWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 837var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 937var initialStreamWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 939var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 1068var initialStreamWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 1069var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 1288var initialWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 1358var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 1398_serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize = 128 * 1024; 1399_serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize = 96 * 1024; 1401var initialStreamWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 1403var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 1649_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = 1; 1684_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = 1; 1697_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = 100; 1710_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = int.MaxValue; 1723_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = 1; 1802_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = maxStreamsPerConnection; 1863var initialWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 1887var initialWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 2425_serviceContext.ServerOptions.Limits.Http2.HeaderTableSize = 0; 2555_serviceContext.ServerOptions.AllowResponseHeaderCompression = false; 3539var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 4161_serviceContext.ServerOptions.Limits.Http2.HeaderTableSize = 40000;
Http2\Http2KeepAliveTests.cs (17)
14_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = Timeout.InfiniteTimeSpan; 27_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 28_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingTimeout = Timeout.InfiniteTimeSpan; 57_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 79_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 102_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(5); 119_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 142_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 180_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 181_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingTimeout = TimeSpan.FromSeconds(3); 212_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 213_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingTimeout = TimeSpan.FromSeconds(3); 244_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 268_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 271_serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize = 65535; 322_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 325_serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize = 65535;
Http2\Http2StreamTests.cs (17)
475_serviceContext.ServerOptions.AllowAlternateSchemes = true; 512_serviceContext.ServerOptions.AllowAlternateSchemes = true; 1856_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 15; 1897_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 10; 1943_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 15; 1983_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 10; 2035_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 20; 2095_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 10; 2180_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => Encoding.UTF8; 2181_serviceContext.ServerOptions.RequestHeaderEncodingSelector = _ => Encoding.UTF8; // Used for decoding response. 2225_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => encoding; 2506_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => Encoding.UTF8; 2507_serviceContext.ServerOptions.RequestHeaderEncodingSelector = _ => Encoding.UTF8; // Used for decoding response. 2560_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => encoding; 3651_serviceContext.ServerOptions.Limits.Http2.MaxFrameSize = 17001; 5798_serviceContext.ServerOptions.RequestHeaderEncodingSelector = _ => Encoding.Latin1; 5843_serviceContext.ServerOptions.RequestHeaderEncodingSelector = _ => encoding;
Http2\Http2TestBase.cs (10)
441_decodedHeaders[nameStr] = value.GetRequestHeaderString(nameStr, _serviceContext.ServerOptions.RequestHeaderEncodingSelector, checkForNewlineChars: true); 471var inputPipeOptions = GetInputPipeOptions(_serviceContext, _memoryPool, PipeScheduler.ThreadPool); 472var outputPipeOptions = GetOutputPipeOptions(_serviceContext, _memoryPool, PipeScheduler.ThreadPool); 486serviceContext: _serviceContext, 606_serviceContext, 607new TransportConnectionManager(_serviceContext.ConnectionManager), 610new KestrelTrace(_serviceContext.LoggerFactory), 1381_serviceContext.FakeTimeProvider.Advance(timeSpan); 1387var timestamp = _serviceContext.FakeTimeProvider.GetTimestamp(); 1394var timeProvider = _serviceContext.FakeTimeProvider;
Http2\Http2TimeoutTests.cs (20)
19var limits = _serviceContext.ServerOptions.Limits; 41var limits = _serviceContext.ServerOptions.Limits; 61var limits = _serviceContext.ServerOptions.Limits; 110var limits = _serviceContext.ServerOptions.Limits; 133var limits = _serviceContext.ServerOptions.Limits; 175var limits = _serviceContext.ServerOptions.Limits; 210var limits = _serviceContext.ServerOptions.Limits; 249var timeProvider = _serviceContext.FakeTimeProvider; 351var limits = _serviceContext.ServerOptions.Limits; 404var limits = _serviceContext.ServerOptions.Limits; 459var limits = _serviceContext.ServerOptions.Limits; 511var limits = _serviceContext.ServerOptions.Limits; 565var limits = _serviceContext.ServerOptions.Limits; 631var limits = _serviceContext.ServerOptions.Limits; 678var limits = _serviceContext.ServerOptions.Limits; 729var limits = _serviceContext.ServerOptions.Limits; 796var limits = _serviceContext.ServerOptions.Limits; 864var limits = _serviceContext.ServerOptions.Limits; 916var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 921var limits = _serviceContext.ServerOptions.Limits;
Http2\Http2WebSocketTests.cs (3)
325var limits = _serviceContext.ServerOptions.Limits; 387var limits = _serviceContext.ServerOptions.Limits; 403Assert.Equal(_serviceContext.ServerOptions.Limits.MaxRequestBodySize + 1, memoryStream.Length);