You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 4.2 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: GetActiveAsync

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

Syntax

Task<ItemsPage<SynchronizationDetails>> GetActiveAsync(int start = 0, int pageSize = 25);

Parameters
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.

Example

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));