这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1.1 KiB

LINGYUN.Abp.Features.LimitValidation.Redis.Client

Redis-based client feature limit validation component

Features

  • Inherits all functionality from LINGYUN.Abp.Features.LimitValidation.Redis
  • Specifically designed for client application feature limit validation
  • Support client-specific limitation policies

Configuration and Usage

  1. Add module dependency
[DependsOn(typeof(AbpFeaturesValidationRedisClientModule))]
public class YouProjectModule : AbpModule
{
    // other
}
  1. Configure Redis options (same as LINGYUN.Abp.Features.LimitValidation.Redis)
{
  "Features": {
    "Validation": {
      "Redis": {
        "Configuration": "127.0.0.1",
        "InstanceName": "YourInstanceName"
      }
    }
  }
}

Usage Example

// Limit a client feature to be called at most 1000 times per day
[RequiresLimitFeature("YourClientFeature.DailyLimit", "YourClientFeature.Interval", LimitPolicy.Days)]
public async Task YourClientMethod()
{
    // Client business logic
}

简体中文 | English