Exemple #1
0
 internal RateLimiter(IRateLimitRepository repo)
 {
     _repo = repo;
 }
 public RateLimitService(IOptions <RateLimitOptions> options, IRateLimitRepository counterRepo, IRequestsLogRepository _requestLogRepo)
 {
     _options              = options.Value;
     _counterRepository    = counterRepo;
     _requestLogRepository = _requestLogRepo;
 }
Exemple #3
0
 public ApplicationService(IApplicationRepository repo, IRateLimitRepository rateRepo) : base(repo)
 {
     this.repo     = repo;
     this.rateRepo = rateRepo;
 }
Exemple #4
0
 public RateLimitService(IRateLimitRepository repo, IApplicationService appService) : base(repo)
 {
     this.repo       = repo;
     this.appService = appService;
 }