/// <summary> /// Main Constructor. /// </summary> public RestService() { _client = new HttpClient(); // Added 200 seconds of limit due to the Evolution (laps data) amount of packages to be retrieved. _client.Timeout = TimeSpan.FromSeconds(200); _api = new ErgastAPI(); }
static async System.Threading.Tasks.Task Main(string[] args) { Console.WriteLine("Hello World!"); ErgastAPI ergastAPI = new ErgastAPI(); await ergastAPI.FindSeasonsAsync(); await ergastAPI.FindDriversForSeasonAsync(2020); Console.ReadKey(); }
public BLL() { apiService = new ErgastAPI(); }