Hi,I am implementing a function which will take username and ID of a person and then list the maps in the root folder and maps in the groups shared by that person in a separate UI. I am putting the results from both GetGroupAsync and GetItemsSync in an array. The idea is to call the new list box class constructor with the array as an argument after both async methods have finished. Now my problem is that where can I call the constructor of new class. There are three possibilities with three issues1. put the nextUI = new Listboxconstructor(array);
in the GetItemsAsync method. The problem is that I dont get the items from the GetGroupsAsync as that method is running in separate thread.2. put the nextUI = new Listboxconstructor(array);
in the GetGroupsAsync method. The problem is that I dont get the items from the GetItemsAsync as that method is running in separate thread.3. put the nextUI = new Listboxconstructor(array);
in the main thread. The problem is that I dont get the items from from any method as both methods are running in separate threads.Any workaround for this issue will be appreciated.Thanks