Beispiel #1
0
 /// <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();
 }
Beispiel #2
0
        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();
        }
Beispiel #3
0
 public BLL()
 {
     apiService = new ErgastAPI();
 }