Web farms


List of examples:

Create web farm synchronization tasks

C#


// Sets the properties for the task
int destinationMediaLibraryID = 1;
string origPath = "relative/path/to/source/file";
string newPath = "relative/path/to/destination";

// Creates the web farm task
WebFarmHelper.CreateTask(new CopyFileMediaWebFarmTask
{
    DestinationLibraryId = destinationMediaLibraryID,
    SourcePath = origPath,
    DestinationPath = newPath
});

> Back to list of examples