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)
632_serviceContext.ServerOptions.Limits.MinRequestBodyDataRate = null; 723_serviceContext.ServerOptions.Limits.Http2.MaxFrameSize = length; 810var initialStreamWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 812var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 912var initialStreamWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 914var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 1043var initialStreamWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 1044var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 1263var initialWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 1333var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 1373_serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize = 128 * 1024; 1374_serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize = 96 * 1024; 1376var initialStreamWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 1378var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 1624_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = 1; 1659_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = 1; 1672_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = 100; 1685_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = int.MaxValue; 1698_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = 1; 1777_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = maxStreamsPerConnection; 1838var initialWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 1862var initialWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 2331_serviceContext.ServerOptions.Limits.Http2.HeaderTableSize = 0; 2461_serviceContext.ServerOptions.AllowResponseHeaderCompression = false; 3392var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 4003_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; 5778_serviceContext.ServerOptions.RequestHeaderEncodingSelector = _ => Encoding.Latin1; 5823_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; 174var limits = _serviceContext.ServerOptions.Limits; 209var limits = _serviceContext.ServerOptions.Limits; 248var timeProvider = _serviceContext.FakeTimeProvider; 350var limits = _serviceContext.ServerOptions.Limits; 403var limits = _serviceContext.ServerOptions.Limits; 458var limits = _serviceContext.ServerOptions.Limits; 510var limits = _serviceContext.ServerOptions.Limits; 564var limits = _serviceContext.ServerOptions.Limits; 630var limits = _serviceContext.ServerOptions.Limits; 677var limits = _serviceContext.ServerOptions.Limits; 728var limits = _serviceContext.ServerOptions.Limits; 795var limits = _serviceContext.ServerOptions.Limits; 863var limits = _serviceContext.ServerOptions.Limits; 915var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 920var 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);