private async Task <T> DoCall <T>(string url) { if (_apiKey.GetApiCount() > MaxNumberOfCalls) { throw new TornApiToManyRequestException("To many calls have been made with this api key maximum amount: " + this.MaxNumberOfCalls.ToString()); } var response = await apiCaller.GetObject <T>(url); _apiKey.AddApiCount(); return(response); }