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

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: SetDestinationsAsync

SetDestinationsAsync is used to setup the servers where files should be synchronized.


Task SetDestinationsAsync(params SynchronizationDestination[] destinations);
destinations SynchronizationDestination[] The array of SynchronizationDestination objects representing destination file systems

Return Value
Task A task that represents the asynchronous set operation


await store.AsyncFilesCommands.Synchronization.SetDestinationsAsync(new SynchronizationDestination
	ServerUrl = "http://localhost:8080/",
	FileSystem = "BackupFS"