Exemplo n.º 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();
 }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
Arquivo: BLL.cs Projeto: Lapprenti/XAM
 public BLL()
 {
     apiService = new ErgastAPI();
 }