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