53 references to MinDataRate
InMemory.FunctionalTests (23)
Http2\Http2TimeoutTests.cs (11)
353
limits.MinResponseDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
406
limits.MinResponseDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
461
limits.MinResponseDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
513
limits.MinResponseDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
567
limits.MinResponseDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
633
limits.MinRequestBodyDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
680
limits.MinRequestBodyDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
731
limits.MinRequestBodyDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
798
limits.MinRequestBodyDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
866
limits.MinRequestBodyDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
923
limits.MinRequestBodyDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
Http2\Http2WebSocketTests.cs (1)
328
limits.MinRequestBodyDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
Http3\Http3TimeoutTests.cs (8)
341
limits.MinRequestBodyDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
383
limits.MinResponseDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
451
limits.MinResponseDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
493
limits.MinResponseDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
535
limits.MinRequestBodyDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
581
limits.MinRequestBodyDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
636
limits.MinRequestBodyDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
692
limits.MinRequestBodyDataRate = new
MinDataRate
(480, TimeSpan.FromSeconds(2.5));
RequestBodyTimeoutTests.cs (2)
33
new
MinDataRate
(bytesPerSecond: 1, gracePeriod: gracePeriod);
164
new
MinDataRate
(bytesPerSecond: 1, gracePeriod: gracePeriod);
ResponseDrainingTests.cs (1)
26
var minRate = new
MinDataRate
(16384, TimeSpan.FromSeconds(2));
Microsoft.AspNetCore.Server.Kestrel.Core (2)
KestrelServerLimits.cs (2)
360
new
MinDataRate
(bytesPerSecond: 240, gracePeriod: TimeSpan.FromSeconds(5));
384
new
MinDataRate
(bytesPerSecond: 240, gracePeriod: TimeSpan.FromSeconds(5));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (22)
Http1\Http1ConnectionTests.cs (3)
166
_http1Connection.MinRequestBodyDataRate = new
MinDataRate
(bytesPerSecond: 1, gracePeriod: TimeSpan.MaxValue);
176
_http1Connection.MinResponseDataRate = new
MinDataRate
(bytesPerSecond: 1, gracePeriod: TimeSpan.MaxValue);
1186
new
MinDataRate
(bytesPerSecond: 1, gracePeriod: TimeSpan.MaxValue)
Http2\Http2HttpProtocolFeatureCollectionTests.cs (1)
55
Assert.Throws<NotSupportedException>(() => minRateFeature.MinDataRate = new
MinDataRate
(1, TimeSpan.FromSeconds(2)));
Http3\Http3HttpProtocolFeatureCollectionTests.cs (1)
55
Assert.Throws<NotSupportedException>(() => minRateFeature.MinDataRate = new
MinDataRate
(1, TimeSpan.FromSeconds(2)));
MinDataRateTests.cs (4)
17
Assert.Equal(value, new
MinDataRate
(bytesPerSecond: value, gracePeriod: TimeSpan.MaxValue).BytesPerSecond);
26
var exception = Assert.Throws<ArgumentOutOfRangeException>(() => new
MinDataRate
(bytesPerSecond: value, gracePeriod: TimeSpan.MaxValue));
36
Assert.Equal(value, new
MinDataRate
(bytesPerSecond: 1, gracePeriod: value).GracePeriod);
43
var exception = Assert.Throws<ArgumentOutOfRangeException>(() => new
MinDataRate
(bytesPerSecond: 1, gracePeriod: value));
TimeoutControlTests.cs (13)
63
var minRate = new
MinDataRate
(bytesPerSecond: 100, gracePeriod: TimeSpan.FromSeconds(2));
95
var minRate = new
MinDataRate
(bytesPerSecond: 100, gracePeriod: gracePeriod);
155
var minRate = new
MinDataRate
(bytesPerSecond: 100, gracePeriod: TimeSpan.FromSeconds(2));
211
var minRate = new
MinDataRate
(bytesPerSecond: 100, gracePeriod: TimeSpan.FromSeconds(2));
257
var minRate = new
MinDataRate
(bytesPerSecond: 100, gracePeriod: TimeSpan.FromSeconds(2));
286
var minRate = new
MinDataRate
(bytesPerSecond: 100, gracePeriod: TimeSpan.FromSeconds(2));
334
var minRate = new
MinDataRate
(bytesPerSecond: 100, gracePeriod: TimeSpan.FromSeconds(2));
373
var minRate = new
MinDataRate
(bytesPerSecond: 100, gracePeriod: TimeSpan.FromSeconds(2));
391
var minRate = new
MinDataRate
(bytesPerSecond: 100, gracePeriod: TimeSpan.FromSeconds(5));
415
var minRate = new
MinDataRate
(bytesPerSecond: 100, gracePeriod: TimeSpan.FromSeconds(2));
446
var minRate = new
MinDataRate
(bytesPerSecond: 100, gracePeriod: TimeSpan.FromSeconds(5));
479
var minRate = new
MinDataRate
(bytesPerSecond: 100, gracePeriod: TimeSpan.FromSeconds(2));
504
var minRate = new
MinDataRate
(bytesPerSecond, gracePeriod);
Sockets.FunctionalTests (6)
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (6)
514
MinResponseDataRate = new
MinDataRate
(bytesPerSecond: 1024 * 1024, gracePeriod: TimeSpan.FromSeconds(2))
648
MinResponseDataRate = new
MinDataRate
(bytesPerSecond: 1024 * 1024, gracePeriod: TimeSpan.FromSeconds(2))
769
MinResponseDataRate = new
MinDataRate
(bytesPerSecond: 1024 * 1024, gracePeriod: TimeSpan.FromSeconds(2)),
867
MinResponseDataRate = new
MinDataRate
(bytesPerSecond: 240, gracePeriod: TimeSpan.FromSeconds(2))
944
MinResponseDataRate = new
MinDataRate
(bytesPerSecond: 240, gracePeriod: TimeSpan.FromSeconds(2))
1031
MinResponseDataRate = new
MinDataRate
(bytesPerSecond: 240, gracePeriod: TimeSpan.FromSeconds(2))