Commands: GetPendingAsync

The GetPendingAsync method returns the information about the files that wait for a synchronization slot to a destination file system.


Task<ItemsPage<SynchronizationDetails>> GetPendingAsync(int start = 0, int pageSize = 25);
start int The number of items to skip
pageSize int The maximum number of items to get

Return Value
Task<ItemsPage<SynchronizationDetails>> A task that represents the asynchronous operation. The task result is an ItemsPage object that contains the number of total results and the list of the SynchronizationDetails objects, which contains info about pending file synchronizations.


ItemsPage<SynchronizationDetails> page = await store.AsyncFilesCommands.Synchronization
												.GetPendingAsync(0, 128);

page.Items.ForEach(x =>
	Console.WriteLine("File {0} waits to be synchronized to {1} (modification type: {2})",
							x.FileName, x.DestinationUrl, x.Type));