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;
810
var initialStreamWindowSize =
_serviceContext
.ServerOptions.Limits.Http2.InitialStreamWindowSize;
812
var initialConnectionWindowSize =
_serviceContext
.ServerOptions.Limits.Http2.InitialConnectionWindowSize;
912
var initialStreamWindowSize =
_serviceContext
.ServerOptions.Limits.Http2.InitialStreamWindowSize;
914
var initialConnectionWindowSize =
_serviceContext
.ServerOptions.Limits.Http2.InitialConnectionWindowSize;
1043
var initialStreamWindowSize =
_serviceContext
.ServerOptions.Limits.Http2.InitialStreamWindowSize;
1044
var initialConnectionWindowSize =
_serviceContext
.ServerOptions.Limits.Http2.InitialConnectionWindowSize;
1263
var initialWindowSize =
_serviceContext
.ServerOptions.Limits.Http2.InitialStreamWindowSize;
1333
var initialConnectionWindowSize =
_serviceContext
.ServerOptions.Limits.Http2.InitialConnectionWindowSize;
1373
_serviceContext
.ServerOptions.Limits.Http2.InitialConnectionWindowSize = 128 * 1024;
1374
_serviceContext
.ServerOptions.Limits.Http2.InitialStreamWindowSize = 96 * 1024;
1376
var initialStreamWindowSize =
_serviceContext
.ServerOptions.Limits.Http2.InitialStreamWindowSize;
1378
var 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;
1838
var initialWindowSize =
_serviceContext
.ServerOptions.Limits.Http2.InitialStreamWindowSize;
1862
var initialWindowSize =
_serviceContext
.ServerOptions.Limits.Http2.InitialConnectionWindowSize;
2331
_serviceContext
.ServerOptions.Limits.Http2.HeaderTableSize = 0;
2461
_serviceContext
.ServerOptions.AllowResponseHeaderCompression = false;
3392
var 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);
471
var inputPipeOptions = GetInputPipeOptions(
_serviceContext
, _memoryPool, PipeScheduler.ThreadPool);
472
var outputPipeOptions = GetOutputPipeOptions(
_serviceContext
, _memoryPool, PipeScheduler.ThreadPool);
486
serviceContext:
_serviceContext
,
606
_serviceContext
,
607
new TransportConnectionManager(
_serviceContext
.ConnectionManager),
610
new KestrelTrace(
_serviceContext
.LoggerFactory),
1381
_serviceContext
.FakeTimeProvider.Advance(timeSpan);
1387
var timestamp =
_serviceContext
.FakeTimeProvider.GetTimestamp();
1394
var timeProvider =
_serviceContext
.FakeTimeProvider;
Http2\Http2TimeoutTests.cs (20)
19
var limits =
_serviceContext
.ServerOptions.Limits;
41
var limits =
_serviceContext
.ServerOptions.Limits;
61
var limits =
_serviceContext
.ServerOptions.Limits;
110
var limits =
_serviceContext
.ServerOptions.Limits;
133
var limits =
_serviceContext
.ServerOptions.Limits;
174
var limits =
_serviceContext
.ServerOptions.Limits;
209
var limits =
_serviceContext
.ServerOptions.Limits;
248
var timeProvider =
_serviceContext
.FakeTimeProvider;
350
var limits =
_serviceContext
.ServerOptions.Limits;
403
var limits =
_serviceContext
.ServerOptions.Limits;
458
var limits =
_serviceContext
.ServerOptions.Limits;
510
var limits =
_serviceContext
.ServerOptions.Limits;
564
var limits =
_serviceContext
.ServerOptions.Limits;
630
var limits =
_serviceContext
.ServerOptions.Limits;
677
var limits =
_serviceContext
.ServerOptions.Limits;
728
var limits =
_serviceContext
.ServerOptions.Limits;
795
var limits =
_serviceContext
.ServerOptions.Limits;
863
var limits =
_serviceContext
.ServerOptions.Limits;
915
var initialConnectionWindowSize =
_serviceContext
.ServerOptions.Limits.Http2.InitialConnectionWindowSize;
920
var limits =
_serviceContext
.ServerOptions.Limits;
Http2\Http2WebSocketTests.cs (3)
325
var limits =
_serviceContext
.ServerOptions.Limits;
387
var limits =
_serviceContext
.ServerOptions.Limits;
403
Assert.Equal(
_serviceContext
.ServerOptions.Limits.MaxRequestBodySize + 1, memoryStream.Length);