loading
open in
main.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using System.Threading.Tasks;

class MainClass {
  public static void Main (string[] args) {

    ThirdParty_Service thirdPartyService = new ThirdParty_Service();

    YourService yourService = new YourService(thirdPartyService);

    Parallel.For(1, 10, async i =>
    {
        MenuData menu = await yourService.GetMenuData(i.ToString());

        Console.WriteLine($"MenuId: {menu.MenuId}, Name: {menu.Name}");

        Console.WriteLine("======================================");
    });


    Console.WriteLine ("Hello World");

    Console.ReadLine();
  }
}