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