I currently have code that looks like this:
private async Task<ListFolderResult> ListFolder(DropboxClient client, string path) { Console.WriteLine("--- Files ---"); var list = await client.Files.ListFolderAsync(path); return list; } And is called like this:
var list = await ListFolder(client, path); I would like to change that code so the call looks like this:
var list = ListFolder(client, path); And the waiting moves to inside of the ListFolder method.
async/awaitfromListFolderand add waiting:client.Files.ListFolderAsync(path).Resultorclient.Files.ListFolderAsync(path).Wait()