EasyAbp.Abp.UsingLimiter.Ip 0.1.0

ABP vNext framework Limiter Ip module.

Install-Package EasyAbp.Abp.UsingLimiter.Ip -Version 0.1.0
dotnet add package EasyAbp.Abp.UsingLimiter.Ip --version 0.1.0
<PackageReference Include="EasyAbp.Abp.UsingLimiter.Ip" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EasyAbp.Abp.UsingLimiter.Ip --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EasyAbp.Abp.UsingLimiter.Ip, 0.1.0"
For F# scripts that support #r syntax, copy this into the source code to reference the package.
// Install EasyAbp.Abp.UsingLimiter.Ip as a Cake Addin
#addin nuget:?package=EasyAbp.Abp.UsingLimiter.Ip&version=0.1.0

// Install EasyAbp.Abp.UsingLimiter.Ip as a Cake Tool
#tool nuget:?package=EasyAbp.Abp.UsingLimiter.Ip&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Abp.UsingLimiter

An Abp module helps you control how often your service is used.

Getting Started

Download and Install the latest Abp.UsingLimiter from NuGet or via CLI:

PM> Install-Package EasyAbp.Abp.UsingLimiter
PM> Install-Package EasyAbp.Abp.UsingLimiter.Client
PM> Install-Package EasyAbp.Abp.UsingLimiter.Ip
  1. Added [DependsOn(typeof(AbpLimiterModule))] attribute to the module.
  2. Added [DependsOn(typeof(AbpClientLimiterModule))] attribute to the module.
  3. Added [DependsOn(typeof(AbpIpLimiterModule))] attribute to the module.

Usage

1��Extends IHostBuilder with Limiter configuration methods.

IHostBuilder.UseAbpLimiter(RateLimitType.All);

2��Declare the following namespace within AppModule.cs

using EasyAbp.Abp.UsingLimiter.DependencyInjection;
//client rate limiting
using EasyAbp.Abp.UsingLimiter.Client;
using EasyAbp.Abp.UsingLimiter.Client.DependencyInjection;
//Ip rate limiting
using EasyAbp.Abp.UsingLimiter.Ip;
using EasyAbp.Abp.UsingLimiter.Ip.DependencyInjection;

3��Register the middleware

app.UseIpRateLimiting();
app.UseClientRateLimiting();

4��Add the following code at ConfigureServices() method

  context.Services.AddLimiterService<MemoryCacheRateLimitCounterStore>(service =>
  {
        service.AddLimiterIpService<MemoryCacheIpPolicyStore>();
        service.AddLimiterClientService<MemoryCacheClientPolicyStore>();
 });

Documentation

Rate limiting based on client IP

Rate limiting based on client ID

Roadmap

  • Unit test

Abp.UsingLimiter

An Abp module helps you control how often your service is used.

Getting Started

Download and Install the latest Abp.UsingLimiter from NuGet or via CLI:

PM> Install-Package EasyAbp.Abp.UsingLimiter
PM> Install-Package EasyAbp.Abp.UsingLimiter.Client
PM> Install-Package EasyAbp.Abp.UsingLimiter.Ip
  1. Added [DependsOn(typeof(AbpLimiterModule))] attribute to the module.
  2. Added [DependsOn(typeof(AbpClientLimiterModule))] attribute to the module.
  3. Added [DependsOn(typeof(AbpIpLimiterModule))] attribute to the module.

Usage

1��Extends IHostBuilder with Limiter configuration methods.

IHostBuilder.UseAbpLimiter(RateLimitType.All);

2��Declare the following namespace within AppModule.cs

using EasyAbp.Abp.UsingLimiter.DependencyInjection;
//client rate limiting
using EasyAbp.Abp.UsingLimiter.Client;
using EasyAbp.Abp.UsingLimiter.Client.DependencyInjection;
//Ip rate limiting
using EasyAbp.Abp.UsingLimiter.Ip;
using EasyAbp.Abp.UsingLimiter.Ip.DependencyInjection;

3��Register the middleware

app.UseIpRateLimiting();
app.UseClientRateLimiting();

4��Add the following code at ConfigureServices() method

  context.Services.AddLimiterService<MemoryCacheRateLimitCounterStore>(service =>
  {
        service.AddLimiterIpService<MemoryCacheIpPolicyStore>();
        service.AddLimiterClientService<MemoryCacheClientPolicyStore>();
 });

Documentation

Rate limiting based on client IP

Rate limiting based on client ID

Roadmap

  • Unit test

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.1.0 173 3/22/2020