Commands: GetActiveAsync

The GetActiveAsync method returns the information about the active outgoing synchronizations.


Task<ItemsPage<SynchronizationDetails>> GetActiveAsync(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 synchronizations being in progress.


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

page.Items.ForEach(x => 
	Console.WriteLine("Synchronization of {0} to {1} (type: {2}) is in progress", 
							x.FileName, x.DestinationUrl, x.Type));