53 instantiations of 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))
55 references to MinDataRate
InMemory.FunctionalTests (4)
Http2\Http2TestBase.cs (3)
1484
public virtual void StartRequestBody(
MinDataRate
minRate)
1519
public virtual void BytesWrittenToBuffer(
MinDataRate
minRate, long size)
1529
public long GetResponseDrainDeadline(long ticks,
MinDataRate
minRate)
ResponseDrainingTests.cs (1)
26
var
minRate = new MinDataRate(16384, TimeSpan.FromSeconds(2));
Microsoft.AspNetCore.Server.Kestrel.Core (29)
Features\IHttpMinRequestBodyDataRateFeature.cs (1)
20
MinDataRate
? MinDataRate { get; set; }
Features\IHttpMinResponseDataRateFeature.cs (1)
20
MinDataRate
? MinDataRate { get; set; }
Internal\Http\Http1Connection.cs (1)
79
public
MinDataRate
? MinResponseDataRate { get; set; }
Internal\Http\Http1Connection.FeatureCollection.cs (2)
19
MinDataRate
? IHttpMinRequestBodyDataRateFeature.MinDataRate
25
MinDataRate
? IHttpMinResponseDataRateFeature.MinDataRate
Internal\Http\HttpProtocol.cs (1)
117
public
MinDataRate
? MinRequestBodyDataRate { get; set; }
Internal\Http2\Http2FrameWriter.cs (3)
83
private readonly
MinDataRate
? _minResponseDataRate;
115
MinDataRate
? minResponseDataRate,
830
static async ValueTask<FlushResult> FlushAsyncAwaited(ValueTask<FlushResult> writeTask, ITimeoutControl timeoutControl,
MinDataRate
? minResponseDataRate)
Internal\Http2\Http2Stream.FeatureCollection.cs (1)
48
MinDataRate
? IHttpMinRequestBodyDataRateFeature.MinDataRate
Internal\Http3\Http3Connection.cs (1)
307
var
minDataRate = _context.ServiceContext.ServerOptions.Limits.MinResponseDataRate;
Internal\Http3\Http3FrameWriter.cs (2)
37
private readonly
MinDataRate
? _minResponseDataRate;
59
public Http3FrameWriter(ConnectionContext connectionContext, ITimeoutControl timeoutControl,
MinDataRate
? minResponseDataRate, MemoryPool<byte> memoryPool, KestrelTrace log, IStreamIdFeature streamIdFeature, Http3PeerSettings clientPeerSettings, IHttp3Stream http3Stream)
Internal\Http3\Http3Stream.FeatureCollection.cs (1)
41
MinDataRate
? IHttpMinRequestBodyDataRateFeature.MinDataRate
Internal\Infrastructure\ITimeoutControl.cs (3)
19
void StartRequestBody(
MinDataRate
minRate);
27
void BytesWrittenToBuffer(
MinDataRate
minRate, long count);
28
long GetResponseDrainDeadline(long timestamp,
MinDataRate
minRate);
Internal\Infrastructure\PipeWriterHelpers\TimingPipeFlusher.cs (3)
46
public ValueTask<FlushResult> FlushAsync(
MinDataRate
? minRate, long count)
51
public ValueTask<FlushResult> FlushAsync(
MinDataRate
? minRate, long count, IHttpOutputAborter? outputAborter, CancellationToken cancellationToken)
77
private async ValueTask<FlushResult> TimeFlushAsyncAwaited(ValueTask<FlushResult> pipeFlushTask,
MinDataRate
? minRate, IHttpOutputAborter? outputAborter, CancellationToken cancellationToken)
Internal\Infrastructure\TimeoutControl.cs (4)
20
private
MinDataRate
? _minReadRate;
200
public void StartRequestBody(
MinDataRate
minRate)
284
public void BytesWrittenToBuffer(
MinDataRate
minRate, long count)
336
public long GetResponseDrainDeadline(long timestamp,
MinDataRate
minRate)
Internal\Infrastructure\TimeoutControlExtensions.cs (1)
8
public static void StartDrainTimeout(this ITimeoutControl timeoutControl,
MinDataRate
? minDataRate, long? maxResponseBufferSize)
KestrelServerLimits.cs (2)
358
public
MinDataRate
? MinRequestBodyDataRate { get; set; } =
382
public
MinDataRate
? MinResponseDataRate { get; set; } =
MinDataRate.cs (2)
14
/// Creates a new instance of <see cref="
MinDataRate
"/>.
41
/// The amount of time to delay enforcement of <see cref="
MinDataRate
" />,
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (19)
Http1\Http1ConnectionTests.cs (4)
330
public void ConfiguringIHttpMinRequestBodyDataRateFeatureSetsMinRequestBodyDataRate(
MinDataRate
minDataRate)
339
public void ConfiguringIHttpMinResponseDataRateFeatureSetsMinResponseDataRate(
MinDataRate
minDataRate)
1183
public static TheoryData<
MinDataRate
> MinDataRateData => new TheoryData<
MinDataRate
>
MessageBodyTests.cs (2)
918
var
minReadRate = input.Http1Connection.MinRequestBodyDataRate;
947
var
minReadRate = input.Http1Connection.MinRequestBodyDataRate;
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);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
Mocks\MockTimeoutControl.cs (3)
19
public void BytesWrittenToBuffer(
MinDataRate
minRate, long count)
27
public long GetResponseDrainDeadline(long ticks,
MinDataRate
minRate)
44
public void StartRequestBody(
MinDataRate
minRate)