Exemplo n.º 1
0
        private async void LoadEmailList(FolderInfo folder)
        {
            var progress = new Progress <IMail>(mail => LoadListViewItem(mail));

            await Task.Factory.StartNew(() => mailService.GetAllMails(progress, folder), TaskCreationOptions.LongRunning);
        }