ThrottlingTroll.AzureFunctions
11.0.0-beta2
See the version list below for details.
dotnet add package ThrottlingTroll.AzureFunctions --version 11.0.0-beta2
NuGet\Install-Package ThrottlingTroll.AzureFunctions -Version 11.0.0-beta2
<PackageReference Include="ThrottlingTroll.AzureFunctions" Version="11.0.0-beta2" />
<PackageVersion Include="ThrottlingTroll.AzureFunctions" Version="11.0.0-beta2" />
<PackageReference Include="ThrottlingTroll.AzureFunctions" />
paket add ThrottlingTroll.AzureFunctions --version 11.0.0-beta2
#r "nuget: ThrottlingTroll.AzureFunctions, 11.0.0-beta2"
#:package ThrottlingTroll.AzureFunctions@11.0.0-beta2
#addin nuget:?package=ThrottlingTroll.AzureFunctions&version=11.0.0-beta2&prerelease
#tool nuget:?package=ThrottlingTroll.AzureFunctions&version=11.0.0-beta2&prerelease
ThrottlingTroll.AzureFunctions
Rate limiting/throttling middleware for Azure Functions. Can be used both in InProc and Isolated projects, both with "classic" HTTP-triggered Functions and with ASP.Net Core Integration.
Install from NuGet:
dotnet add package ThrottlingTroll.AzureFunctions
How to use (.NET Isolated)
Make sure you call one or another form of .UseThrottlingTroll() method at startup:
var builder = new HostBuilder();
// .....
builder.ConfigureFunctionsWebApplication((builderContext, workerAppBuilder) => {
workerAppBuilder.UseThrottlingTroll();
// .....
});
How to use (.NET InProc)
- Use
.AddThrottlingTroll()method to add ThrottlingTroll to your DI container at startup:
[assembly: WebJobsStartup(typeof(ThrottlingTrollSampleInProcFunction.Startup.Startup))]
namespace ThrottlingTrollSampleInProcFunction.Startup
{
public class Startup : IWebJobsStartup
{
public void Configure(IWebJobsBuilder builder)
{
builder.Services.AddThrottlingTroll(options =>
{
// In InProc Functions config sections loaded from host.json have the "AzureFunctionsJobHost:" prefix in their names
options.ConfigSectionName = "AzureFunctionsJobHost:ThrottlingTrollIngress";
// .....
});
}
}
}
Add InProc-specific implementation of IHttpRequestProxy to your project.
Wrap your Functions with
.WithThrottlingTroll()method, like this:
public class MyFunctions
{
private readonly IThrottlingTroll _thtr;
public Functions(IThrottlingTroll thtr)
{
this._thtr = thtr;
}
[FunctionName("MyFunc")]
public Task<IActionResult> MyFunc([HttpTrigger(AuthorizationLevel.Anonymous, "get")] HttpRequest req)
=> this._thtr.WithThrottlingTroll(new InProcHttpRequestProxy(req),
async ctx =>
{
// Your code goes here ...
return (IActionResult)new OkObjectResult("OK");
},
async ctx =>
{
return (IActionResult)new StatusCodeResult((int)HttpStatusCode.TooManyRequests);
});
}
Samples
Sample Azure Functions projects (both InProc and Isolated) are located in this separate repo.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
- Microsoft.Azure.Functions.Worker (>= 2.52.0)
- Microsoft.Azure.Functions.Worker.Extensions.Http (>= 3.3.0)
- Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore (>= 2.1.1)
- Microsoft.Extensions.Caching.Memory (>= 10.0.14)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.14)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Http (>= 10.0.14)
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 |
|---|---|---|
| 11.0.0 | 142 | 11/4/2026 |
| 11.0.0-beta3 | 83 | 11/4/2026 |
| 11.0.0-beta2 | 92 | 11/3/2026 |
| 11.0.0-beta1 | 103 | 11/2/2026 |
| 10.0.1 | 6,661 | 3/30/2026 |
| 10.0.0 | 1,243 | 3/7/2026 |
| 10.0.0-beta3 | 151 | 3/6/2026 |
| 10.0.0-beta2 | 144 | 3/3/2026 |
| 10.0.0-beta1 | 163 | 3/1/2026 |
| 9.2.0 | 749 | 2/1/2026 |
| 9.1.0 | 2,161 | 1/7/2026 |
| 9.0.0 | 813 | 12/23/2025 |
| 9.0.0-beta3 | 257 | 12/22/2025 |
| 9.0.0-beta2 | 262 | 12/22/2025 |
| 9.0.0-beta1 | 222 | 12/21/2025 |
| 8.0.0 | 4,122 | 7/1/2025 |
| 8.0.0-beta3 | 251 | 6/30/2025 |
| 8.0.0-beta2 | 241 | 6/29/2025 |
| 8.0.0-beta1 | 203 | 6/28/2025 |
| 7.3.0 | 23,552 | 10/14/2024 |