Ejemplo n.º 1
0
        public async Task SyncFoldersAsync(string sdkfolder, string configuration, TargetDevice device, string destfolder, Action <string, int> FolderSynced)
        {
            Progress progress  = null;
            var      taskBuild = CreateProgressTask(ref progress, FolderSynced);

            var task = api.ApplicationSyncfoldersAsync(this.Id, sdkfolder, configuration, device.Id, destfolder, true, progress?.Id);
            await Task.Run(taskBuild);

            await task; // in this way exceptions will be generated
        }