Soenneker.Utils.RateLimiting.Factory 3.0.292

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Utils.RateLimiting.Factory --version 3.0.292                
NuGet\Install-Package Soenneker.Utils.RateLimiting.Factory -Version 3.0.292                
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="Soenneker.Utils.RateLimiting.Factory" Version="3.0.292" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Soenneker.Utils.RateLimiting.Factory --version 3.0.292                
#r "nuget: Soenneker.Utils.RateLimiting.Factory, 3.0.292"                
#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.
// Install Soenneker.Utils.RateLimiting.Factory as a Cake Addin
#addin nuget:?package=Soenneker.Utils.RateLimiting.Factory&version=3.0.292

// Install Soenneker.Utils.RateLimiting.Factory as a Cake Tool
#tool nuget:?package=Soenneker.Utils.RateLimiting.Factory&version=3.0.292                

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Utils.RateLimiting.Factory

An async thread-safe singleton dictionary for Soenneker.Utils.RateLimiting.Executors, designed to manage the rate at which tasks are executed.

Installation

dotnet add package Soenneker.Utils.RateLimiting.Factory

Usage

  1. Register IRateLimitingFactory within DI (Program.cs).
public static async Task Main(string[] args)
{
    ...
    builder.Services.AddRateLimitingFactoryAsSingleton();
}
  1. Inject IRateLimitingFactory, and retrieve a RateLimitingFactory.

Example:

public class TestClass
{
    IRateLimitingFactory _factory;

    public TestClass(IRateLimitingFactory factory)
    {
        _factory = factory;
    }

    public async ValueTask ExecuteTasks()
    {
        RateLimitingExecutor rateLimitingExecutor = await _factory.Get("test", TimeSpan.FromSeconds(2));

        for (int i = 0; i < 5; i++)
        {
            await rateLimitingExecutor.Execute(async ct =>
            {
                Logger.LogInformation($"Executing Task {i + 1} at {DateTime.Now:HH:mm:ss}");

                await Task.Delay(100, ct); // Simulate some work
            });
        }
    }
}

Console Output

Executing Task 1 at 14:00:00
Executing Task 2 at 14:00:02
Executing Task 3 at 14:00:04
Executing Task 4 at 14:00:06
Executing Task 5 at 14:00:08
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Soenneker.Utils.RateLimiting.Factory:

Package Downloads
Soenneker.Validators.Yahoo.Exists

A validation module checking for Yahoo account existence

Soenneker.Validators.Gmail.Exists

A validation module checking for Gmail account existence

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.543 0 1/28/2025
3.0.542 0 1/28/2025
3.0.541 0 1/28/2025
3.0.540 0 1/28/2025
3.0.539 0 1/28/2025
3.0.538 0 1/27/2025
3.0.537 0 1/27/2025
3.0.536 0 1/27/2025
3.0.535 0 1/27/2025
3.0.534 0 1/27/2025
3.0.533 28 1/27/2025
3.0.532 15 1/27/2025
3.0.531 17 1/27/2025
3.0.530 11 1/27/2025
3.0.529 15 1/27/2025
3.0.528 63 1/26/2025
3.0.527 48 1/26/2025
3.0.526 28 1/26/2025
3.0.525 36 1/26/2025
3.0.524 34 1/26/2025
3.0.523 60 1/26/2025
3.0.522 35 1/25/2025
3.0.521 29 1/25/2025
3.0.520 77 1/25/2025
3.0.519 31 1/25/2025
3.0.518 33 1/25/2025
3.0.517 63 1/25/2025
3.0.516 31 1/25/2025
3.0.515 43 1/25/2025
3.0.514 56 1/25/2025
3.0.513 17 1/25/2025
3.0.512 29 1/24/2025
3.0.511 3 1/24/2025
3.0.510 4 1/24/2025
3.0.509 4 1/24/2025
3.0.508 5 1/24/2025
3.0.507 6 1/24/2025
3.0.506 21 1/24/2025
3.0.505 36 1/24/2025
3.0.504 27 1/24/2025
3.0.503 49 1/24/2025
3.0.502 26 1/24/2025
3.0.501 21 1/24/2025
3.0.500 24 1/24/2025
3.0.499 24 1/24/2025
3.0.498 27 1/24/2025
3.0.497 27 1/24/2025
3.0.496 24 1/24/2025
3.0.495 74 1/24/2025
3.0.494 27 1/24/2025
3.0.493 28 1/24/2025
3.0.492 27 1/24/2025
3.0.491 40 1/23/2025
3.0.490 45 1/23/2025
3.0.489 28 1/23/2025
3.0.488 113 1/22/2025
3.0.487 80 1/22/2025
3.0.486 69 1/21/2025
3.0.485 54 1/21/2025
3.0.484 88 1/21/2025
3.0.483 56 1/21/2025
3.0.482 67 1/21/2025
3.0.481 59 1/21/2025
3.0.480 61 1/21/2025
3.0.479 83 1/21/2025
3.0.478 61 1/21/2025
3.0.477 62 1/21/2025
3.0.476 169 1/21/2025
3.0.475 61 1/21/2025
3.0.474 62 1/21/2025
3.0.473 68 1/21/2025
3.0.472 63 1/21/2025
3.0.471 59 1/21/2025
3.0.470 188 1/21/2025
3.0.469 62 1/21/2025
3.0.468 112 1/20/2025
3.0.467 57 1/20/2025
3.0.466 123 1/20/2025
3.0.465 58 1/20/2025
3.0.464 142 1/20/2025
3.0.463 116 1/20/2025
3.0.462 63 1/20/2025
3.0.461 92 1/20/2025
3.0.460 56 1/20/2025
3.0.459 186 1/20/2025
3.0.458 64 1/20/2025
3.0.457 62 1/20/2025
3.0.456 60 1/20/2025
3.0.455 61 1/20/2025
3.0.454 173 1/19/2025
3.0.453 62 1/19/2025
3.0.452 68 1/19/2025
3.0.451 62 1/19/2025
3.0.450 138 1/19/2025
3.0.449 61 1/19/2025
3.0.448 64 1/19/2025
3.0.447 206 1/19/2025
3.0.446 61 1/19/2025
3.0.445 114 1/18/2025
3.0.444 137 1/18/2025
3.0.443 58 1/18/2025
3.0.442 154 1/18/2025
3.0.441 155 1/17/2025
3.0.440 117 1/17/2025
3.0.439 64 1/17/2025
3.0.438 68 1/17/2025
3.0.437 71 1/17/2025
3.0.436 144 1/17/2025
3.0.435 64 1/17/2025
3.0.434 92 1/17/2025
3.0.433 75 1/16/2025
3.0.432 137 1/16/2025
3.0.431 69 1/16/2025
3.0.430 86 1/16/2025
3.0.429 149 1/16/2025
3.0.428 90 1/16/2025
3.0.427 93 1/16/2025
3.0.426 63 1/16/2025
3.0.425 76 1/16/2025
3.0.424 130 1/16/2025
3.0.423 66 1/16/2025
3.0.422 156 1/16/2025
3.0.421 73 1/15/2025
3.0.420 136 1/15/2025
3.0.419 124 1/15/2025
3.0.418 72 1/15/2025
3.0.417 65 1/15/2025
3.0.416 109 1/15/2025
3.0.415 57 1/15/2025
3.0.414 225 1/15/2025
3.0.413 52 1/15/2025
3.0.412 82 1/15/2025
3.0.411 53 1/15/2025
3.0.410 41 1/15/2025
3.0.409 37 1/15/2025
3.0.408 35 1/15/2025
3.0.407 67 1/14/2025
3.0.406 35 1/14/2025
3.0.405 31 1/14/2025
3.0.404 35 1/14/2025
3.0.403 32 1/14/2025
3.0.402 48 1/14/2025
3.0.401 33 1/14/2025
3.0.400 114 1/14/2025
3.0.399 41 1/14/2025
3.0.398 72 1/13/2025
3.0.397 58 1/13/2025
3.0.396 52 1/13/2025
3.0.395 82 1/13/2025
3.0.394 58 1/13/2025
3.0.393 71 1/13/2025
3.0.392 55 1/13/2025
3.0.391 103 1/13/2025
3.0.390 59 1/13/2025
3.0.389 98 1/11/2025
3.0.388 53 1/11/2025
3.0.387 59 1/11/2025
3.0.386 72 1/11/2025
3.0.385 78 1/11/2025
3.0.384 58 1/11/2025
3.0.383 63 1/11/2025
3.0.382 61 1/11/2025
3.0.381 81 1/11/2025
3.0.380 59 1/11/2025
3.0.379 85 1/10/2025
3.0.378 63 1/10/2025
3.0.377 87 1/10/2025
3.0.376 63 1/10/2025
3.0.375 80 1/10/2025
3.0.374 61 1/10/2025
3.0.373 79 1/10/2025
3.0.372 63 1/10/2025
3.0.371 342 1/3/2025
3.0.370 162 1/3/2025
3.0.369 111 1/3/2025
3.0.368 92 1/3/2025
3.0.367 107 1/3/2025
3.0.366 96 1/3/2025
3.0.365 148 1/3/2025
3.0.364 101 1/3/2025
3.0.363 91 1/3/2025
3.0.362 77 1/3/2025
3.0.361 90 1/3/2025
3.0.360 79 1/3/2025
3.0.359 146 1/2/2025
3.0.358 78 1/2/2025
3.0.357 149 1/2/2025
3.0.356 82 1/2/2025
3.0.355 254 1/2/2025
3.0.354 79 1/2/2025
3.0.353 82 1/2/2025
3.0.352 180 1/1/2025
3.0.351 89 1/1/2025
3.0.350 86 1/1/2025
3.0.349 130 1/1/2025
3.0.348 83 1/1/2025
3.0.347 95 1/1/2025
3.0.346 82 1/1/2025
3.0.345 155 1/1/2025
3.0.344 92 1/1/2025
3.0.343 84 1/1/2025
3.0.342 93 1/1/2025
3.0.341 122 1/1/2025
3.0.340 92 1/1/2025
3.0.339 99 12/31/2024
3.0.338 90 12/31/2024
3.0.337 86 12/31/2024
3.0.336 183 12/31/2024
3.0.335 95 12/31/2024
3.0.334 96 12/31/2024
3.0.333 250 12/31/2024
3.0.332 104 12/31/2024
3.0.331 105 12/31/2024
3.0.330 99 12/31/2024
3.0.329 219 12/31/2024
3.0.328 73 12/31/2024
3.0.327 70 12/31/2024
3.0.326 131 12/31/2024
3.0.325 73 12/31/2024
3.0.324 78 12/31/2024
3.0.323 78 12/31/2024
3.0.322 78 12/31/2024
3.0.321 205 12/30/2024
3.0.320 144 12/28/2024
3.0.319 130 12/28/2024
3.0.318 84 12/28/2024
3.0.317 83 12/28/2024
3.0.316 95 12/28/2024
3.0.315 120 12/28/2024
3.0.314 74 12/28/2024
3.0.313 87 12/27/2024
3.0.312 82 12/27/2024
3.0.311 150 12/27/2024
3.0.310 79 12/27/2024
3.0.309 269 12/24/2024
3.0.308 134 12/24/2024
3.0.307 81 12/24/2024
3.0.306 77 12/24/2024
3.0.305 149 12/24/2024
3.0.304 97 12/24/2024
3.0.303 109 12/24/2024
3.0.302 83 12/24/2024
3.0.301 80 12/24/2024
3.0.300 158 12/24/2024
3.0.299 157 12/24/2024
3.0.298 106 12/24/2024
3.0.297 76 12/24/2024
3.0.296 83 12/24/2024
3.0.295 81 12/24/2024
3.0.294 112 12/24/2024
3.0.293 79 12/24/2024
3.0.292 112 12/23/2024
3.0.291 71 12/23/2024
3.0.290 92 12/23/2024
3.0.289 80 12/23/2024
3.0.288 134 12/23/2024
3.0.287 184 12/23/2024
3.0.286 77 12/23/2024
3.0.285 135 12/23/2024
3.0.284 83 12/23/2024
3.0.283 80 12/23/2024
3.0.282 106 12/23/2024
3.0.281 78 12/23/2024
3.0.280 193 12/23/2024
3.0.279 81 12/23/2024
3.0.278 114 12/22/2024
3.0.277 76 12/22/2024
3.0.276 82 12/22/2024
3.0.275 156 12/22/2024
3.0.274 89 12/22/2024
3.0.273 81 12/22/2024
3.0.272 89 12/22/2024
3.0.271 199 12/22/2024
3.0.270 81 12/22/2024
3.0.269 132 12/22/2024
3.0.268 174 12/22/2024
3.0.267 83 12/22/2024
3.0.266 111 12/22/2024
3.0.265 108 12/21/2024
3.0.264 94 12/21/2024
3.0.263 101 12/21/2024
3.0.262 82 12/21/2024
3.0.261 222 12/21/2024
3.0.260 82 12/21/2024
3.0.259 117 12/21/2024
3.0.258 82 12/21/2024
3.0.257 152 12/21/2024
3.0.256 87 12/21/2024
3.0.255 80 12/21/2024
3.0.254 200 12/21/2024
3.0.253 84 12/21/2024
3.0.252 78 12/21/2024
3.0.251 121 12/20/2024
3.0.250 78 12/20/2024
3.0.249 142 12/20/2024
3.0.248 84 12/20/2024
3.0.247 80 12/20/2024
3.0.246 159 12/20/2024
3.0.245 145 12/20/2024
3.0.244 79 12/20/2024
3.0.243 85 12/20/2024
3.0.242 84 12/20/2024
3.0.241 143 12/20/2024
3.0.240 90 12/20/2024
3.0.239 89 12/20/2024
3.0.238 163 12/19/2024
3.0.237 81 12/19/2024
3.0.236 116 12/19/2024
3.0.235 102 12/19/2024
3.0.234 81 12/19/2024
3.0.233 76 12/19/2024
3.0.232 128 12/19/2024
3.0.231 76 12/19/2024
3.0.230 112 12/18/2024
3.0.229 81 12/18/2024
3.0.228 83 12/18/2024
3.0.227 171 12/17/2024
3.0.225 115 12/17/2024
3.0.224 147 12/17/2024
3.0.223 103 12/16/2024
3.0.222 80 12/16/2024
3.0.221 80 12/16/2024
3.0.220 88 12/16/2024
3.0.219 272 12/10/2024
3.0.218 73 12/10/2024
3.0.217 100 12/10/2024
3.0.216 87 12/10/2024
3.0.215 124 12/10/2024
3.0.214 80 12/10/2024
3.0.213 94 12/9/2024
3.0.212 93 12/9/2024
3.0.211 126 12/9/2024
3.0.210 167 12/9/2024
3.0.209 84 12/9/2024
3.0.208 91 12/9/2024
3.0.207 76 12/9/2024
3.0.206 81 12/9/2024
3.0.205 133 12/9/2024
3.0.204 78 12/9/2024
3.0.203 203 12/7/2024
3.0.202 93 12/7/2024
3.0.201 85 12/7/2024
3.0.200 82 12/6/2024
3.0.199 79 12/6/2024
3.0.198 93 12/6/2024
3.0.197 86 12/6/2024
3.0.196 88 12/6/2024
3.0.195 88 12/6/2024
3.0.194 90 12/6/2024
3.0.193 83 12/6/2024
3.0.192 90 12/6/2024
3.0.191 96 12/6/2024
3.0.190 91 12/6/2024
3.0.189 94 12/6/2024
3.0.188 92 12/6/2024
3.0.187 109 12/6/2024
3.0.184 100 12/6/2024
3.0.183 88 12/6/2024
3.0.182 87 12/6/2024
3.0.181 100 12/5/2024
3.0.180 96 12/5/2024
3.0.179 89 12/5/2024
3.0.178 643 12/5/2024
3.0.177 102 12/5/2024
3.0.176 92 12/5/2024
3.0.175 114 12/5/2024
3.0.174 79 12/5/2024
3.0.173 108 12/5/2024
3.0.172 129 12/5/2024
3.0.171 84 12/5/2024
3.0.170 119 12/5/2024
3.0.169 92 12/5/2024
3.0.168 97 12/5/2024
3.0.167 88 12/4/2024
3.0.166 89 12/4/2024
3.0.165 138 12/4/2024
3.0.164 90 12/4/2024
3.0.163 174 12/4/2024
3.0.162 119 12/4/2024
3.0.161 96 12/4/2024
3.0.160 123 12/4/2024
3.0.159 88 12/4/2024
3.0.158 144 12/4/2024
3.0.157 88 12/4/2024
3.0.156 85 12/4/2024
3.0.155 164 12/4/2024
3.0.154 87 12/3/2024
3.0.153 82 12/3/2024
3.0.152 126 12/3/2024
3.0.151 78 12/3/2024
3.0.150 114 12/3/2024
3.0.149 84 12/3/2024
3.0.148 87 12/3/2024
3.0.147 84 12/3/2024
3.0.146 129 12/3/2024
3.0.145 80 12/3/2024
3.0.144 91 12/3/2024
3.0.143 135 12/3/2024
3.0.142 84 12/3/2024
3.0.141 326 12/2/2024
3.0.140 90 12/2/2024
3.0.139 85 12/2/2024
3.0.138 77 12/2/2024
3.0.137 134 12/2/2024
3.0.136 92 12/2/2024
3.0.135 89 12/2/2024
3.0.134 141 12/2/2024
3.0.133 83 12/2/2024
3.0.132 145 12/2/2024
3.0.131 83 12/2/2024
3.0.130 186 12/2/2024
3.0.129 85 12/2/2024
3.0.128 86 12/1/2024
3.0.127 86 12/1/2024
3.0.126 126 12/1/2024
3.0.125 89 12/1/2024
3.0.124 181 12/1/2024
3.0.123 98 12/1/2024
3.0.122 91 12/1/2024
3.0.121 90 12/1/2024
3.0.120 172 11/29/2024
3.0.119 109 11/29/2024
3.0.118 84 11/29/2024
3.0.117 124 11/29/2024
3.0.116 80 11/29/2024
3.0.115 117 11/29/2024
3.0.114 100 11/29/2024
3.0.113 165 11/21/2024
3.0.112 104 11/21/2024
3.0.111 82 11/21/2024
3.0.110 88 11/21/2024
3.0.109 114 11/21/2024
3.0.108 93 11/21/2024
3.0.107 187 11/20/2024
3.0.106 98 11/20/2024
3.0.105 88 11/20/2024
3.0.104 107 11/20/2024
3.0.103 87 11/20/2024
3.0.102 82 11/20/2024
3.0.101 89 11/20/2024
3.0.100 88 11/19/2024
3.0.99 86 11/19/2024
3.0.98 82 11/19/2024
3.0.97 349 11/19/2024
3.0.96 213 11/19/2024
3.0.95 77 11/19/2024
3.0.94 77 11/19/2024
3.0.93 151 11/19/2024
3.0.92 77 11/19/2024
3.0.91 107 11/19/2024
3.0.90 85 11/19/2024
3.0.89 234 11/15/2024
3.0.88 112 11/15/2024
3.0.87 81 11/15/2024
3.0.86 89 11/14/2024
3.0.85 81 11/14/2024
3.0.84 126 11/14/2024
3.0.83 82 11/14/2024
3.0.82 89 11/14/2024
3.0.81 84 11/14/2024
3.0.80 135 11/14/2024
3.0.79 131 11/14/2024
3.0.78 93 11/14/2024
3.0.77 84 11/14/2024
3.0.76 176 11/14/2024
3.0.75 89 11/14/2024
3.0.74 130 11/14/2024
3.0.73 169 11/14/2024
3.0.72 90 11/14/2024
3.0.71 148 11/14/2024
3.0.70 87 11/14/2024
3.0.69 111 11/14/2024
3.0.68 98 11/14/2024
3.0.67 182 11/14/2024
3.0.66 90 11/14/2024
3.0.65 91 11/14/2024
2.1.64 270 11/13/2024
2.1.63 106 11/13/2024
2.1.62 121 11/13/2024
2.1.61 86 11/13/2024
2.1.60 81 11/13/2024
2.1.59 225 11/13/2024
2.1.58 90 11/13/2024
2.1.57 90 11/13/2024
2.1.56 126 11/12/2024
2.1.55 86 11/12/2024
2.1.54 605 11/9/2024
2.1.53 120 11/9/2024
2.1.52 93 11/9/2024
2.1.51 137 11/9/2024
2.1.50 95 11/9/2024
2.1.49 93 11/9/2024
2.1.48 94 11/9/2024
2.1.47 225 11/9/2024
2.1.46 210 11/8/2024
2.1.45 96 11/8/2024
2.1.44 102 11/8/2024
2.1.43 121 11/8/2024
2.1.42 100 11/8/2024
2.1.41 213 11/8/2024
2.1.40 97 11/8/2024
2.1.39 96 11/8/2024
2.1.38 187 11/8/2024
2.1.37 91 11/8/2024
2.1.36 251 11/6/2024
2.1.35 138 11/6/2024
2.1.34 273 11/1/2024
2.1.33 126 11/1/2024
2.1.32 95 11/1/2024
2.1.31 124 11/1/2024
2.1.30 154 11/1/2024
2.1.29 153 11/1/2024
2.1.28 99 11/1/2024
2.1.26 219 10/29/2024
2.1.25 87 10/29/2024
2.1.24 85 10/29/2024
2.1.23 97 10/29/2024
2.1.22 92 10/29/2024
2.1.21 86 10/29/2024
2.1.20 224 10/29/2024
2.1.19 194 10/29/2024
2.1.18 127 10/29/2024
2.1.17 92 10/29/2024
2.1.16 83 10/29/2024
2.1.15 212 10/28/2024
2.1.14 93 10/28/2024
2.1.13 89 10/28/2024
2.1.12 315 10/26/2024
2.1.11 95 10/26/2024
2.1.10 95 10/26/2024
2.1.9 86 10/26/2024
2.1.8 95 10/26/2024
2.1.7 91 10/26/2024
2.1.6 215 10/22/2024
2.1.5 92 10/22/2024
2.1.4 90 10/22/2024
2.1.3 93 10/22/2024
2.1.2 95 10/22/2024
2.1.1 95 10/22/2024