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: SetDestinationsAsync

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

Syntax

Task SetDestinationsAsync(params SynchronizationDestination[] destinations);

Parameters
destinations SynchronizationDestination[] The array of SynchronizationDestination objects representing destination file systems

Return Value
Task A task that represents the asynchronous set operation

Example

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