You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 5.1 version.
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"
});