Skip to main content

Commands: SetDestinationsAsync

Syntax

#Commands: SetDestinationsAsync

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

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

<hr/>

Return Value
TaskA task that represents the asynchronous set operation

Example

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