laget.Limiter
1.1.13
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package laget.Limiter --version 1.1.13
NuGet\Install-Package laget.Limiter -Version 1.1.13
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="laget.Limiter" Version="1.1.13" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="laget.Limiter" Version="1.1.13" />
<PackageReference Include="laget.Limiter" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add laget.Limiter --version 1.1.13
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: laget.Limiter, 1.1.13"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package laget.Limiter@1.1.13
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=laget.Limiter&version=1.1.13
#tool nuget:?package=laget.Limiter&version=1.1.13
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
laget.Limiter
A generic rate limiter, Useful for API clients, web crawling, or other tasks that need to be throttled...
Configuration
This example is shown using Autofac since this is the go-to IoC for us.
builder.Register<IAuthorizationLimit>(c =>
new AuthorizationLimit(new MemoryStore(),
new StandardLimit(300, TimeSpan.FromHours(3)))
).SingleInstance();
Usage
You can specifiy that a limiter should be used by the following
_limiter.Limit(() =>
{
...
});
You can also specify that a kown amount of call will be hit by the following
_limiter.Limit(2, () =>
{
...
});
You can aslo specify additional calls by the following
limiter.Limit(() =>
{
limiter.Register(3);
});
You can aslo use it asynchronous by the following
await limiter.LimitAsync(() => Task.CompletedTask);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
-
.NETStandard 2.1
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.2.30 | 194 | 11/4/2024 |
| 1.2.28 | 179 | 9/3/2024 |
| 1.2.27 | 157 | 6/3/2024 |
| 1.2.26 | 360 | 1/20/2024 |
| 1.2.25 | 350 | 11/22/2023 |
| 1.2.24 | 264 | 7/3/2023 |
| 1.2.22 | 343 | 3/10/2023 |
| 1.1.13 | 1,146 | 9/5/2022 |
| 1.1.5 | 2,219 | 8/16/2021 |
| 1.1.4 | 566 | 8/9/2021 |
| 1.1.3 | 624 | 6/7/2021 |
| 1.1.2 | 642 | 5/21/2021 |
| 1.0.16 | 823 | 4/6/2021 |
| 1.0.15 | 674 | 3/5/2021 |
| 1.0.14 | 515 | 2/12/2021 |
| 1.0.13 | 499 | 2/12/2021 |
| 1.0.12 | 726 | 2/1/2021 |
| 1.0.11 | 548 | 1/8/2021 |
| 1.0.10 | 540 | 12/23/2020 |
| 1.0.9 | 1,026 | 12/21/2020 |
| 1.0.8 | 577 | 12/16/2020 |
| 1.0.7 | 600 | 12/8/2020 |