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
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
- Add module dependency
[DependsOn(typeof(AbpFeaturesValidationRedisClientModule))]
public class YouProjectModule : AbpModule
{
// other
}
- 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
}