,Punchclock.Reactive.OperationQueue,System.Func{System.Net.Http.HttpRequestMessage,System.Net.Http.HttpResponseMessage,System.String,System.Threading.CancellationToken,System.Threading.Tasks.Task>
Defined in Type: RateLimitedHttpMessageHandler
Namespace: Fusillade.Reactive
Assembly: Fusillade.Reactive.dll
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481
public RateLimitedHttpMessageHandler(HttpMessageHandler? handler, Priority basePriority, int priority = 0, long? maxBytesToRead = null, OperationQueue? operationQueue = null, Func<HttpRequestMessage, HttpResponseMessage, string, CancellationToken, Task>? cacheResultFunc = null)
Summary: A http handler which will limit the rate at which we can read.
Parameters
| Name | Type | Description |
|---|---|---|
handler | HttpMessageHandler? | The handler we are wrapping. |
basePriority | [Priority](# | The base priority of the request. |
priority = 0 | int | The priority of the request. |
maxBytesToRead = null | long? | The maximum number of bytes we can read. |
operationQueue = null | [OperationQueue?](# | The operation queue on which to run the operation. |
cacheResultFunc = null | Func | A method that is called if we need to get cached results. |
Remarks
Initializes a new instance of the RateLimitedHttpMessageHandler class.