Пример #1
0
 public TetflixController(IRecommendationsService recommendationsService, IColorService colorService, IUsersService usersService, IThrottlingService throttlingService)
 {
     this.recommendationsService = recommendationsService;
     this.colorService           = colorService;
     this.usersService           = usersService;
     this.throttlingService      = throttlingService;
 }
 public ThrottledRequest(IThrottlingService throttlingService, int cost, int intervalInSeconds,
     long creditsPerIntervalValue)
 {
     _throttlingService = throttlingService;
     _cost = cost;
     _newInterval = () => new Interval(intervalInSeconds, creditsPerIntervalValue);
 }
Пример #3
0
 public AccountsController(IThrottlingContext throttlingContext)
 {
     _throttlingService = throttlingContext.GetThrottlingService();
 }