Table of Contents

Class UpdateMediaWebFarmTask

Namespace
CMS.MediaLibrary
Assembly
CMS.MediaLibrary.dll

Web farm task used to upload media files.

public class UpdateMediaWebFarmTask : WebFarmTaskBase
Inheritance
object
UpdateMediaWebFarmTask
Inherited Members
Extension Methods

Constructors

UpdateMediaWebFarmTask()

Initializes a new instance of UpdateMediaWebFarmTask.

public UpdateMediaWebFarmTask()

Properties

FileExtension

Gets or sets extension of the file to be updated.

public string FileExtension { get; set; }

Property Value

string

FileGuid

Gets or sets guid identifier of the file to be updated.

public Guid FileGuid { get; set; }

Property Value

Guid

FileName

Gets or sets name of the file to be updated.

public string FileName { get; set; }

Property Value

string

LibraryFolder

Gets or sets media library root folder.

public string LibraryFolder { get; set; }

Property Value

string

LibrarySubFolderPath

Gets or sets library sub folder path.

public string LibrarySubFolderPath { get; set; }

Property Value

string

Methods

ConditionMethod()

Returns true whether the synchronization for updating media files is allowed and provided storage is not shared.

public override bool ConditionMethod()

Returns

bool

ExecuteTask()

Processes the web farm task by invoking the SaveFileToDisk(string, string, string, string, Guid, BinaryDataWrapper, bool, bool) method while passing it current class' properties as its parameters.

public override void ExecuteTask()