- Implement RedisCounterService for rate limiting - Implement RuleLoader with timer refresh - Implement RiskEvaluator for local rule evaluation - Implement SamplingService for CAP events - Implement CapEventPublisher for async event publishing - Implement FailoverStrategy for Redis failure handling - Add configuration classes and DI extensions - Add unit tests (9 tests) - Add NuGet publishing script
10 lines
205 B
C#
10 lines
205 B
C#
using Fengling.RiskControl.Domain.Aggregates.RiskRules;
|
|
|
|
namespace Fengling.RiskControl;
|
|
|
|
public interface IRiskRuleLoader
|
|
{
|
|
Task<List<RiskRule>> GetActiveRulesAsync();
|
|
Task RefreshRulesAsync();
|
|
}
|