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); }
public AccountsController(IThrottlingContext throttlingContext) { _throttlingService = throttlingContext.GetThrottlingService(); }