Table of Contents

Interface IWebFarmServerTaskInfoProvider

Namespace
CMS.WebFarmSync
Assembly
CMS.WebFarmSync.dll

Declares members for WebFarmServerTaskInfo management.

[Obsolete("Use CMS.DataEngine.IInfoProvider<WebFarmServerTaskInfo> instead. Use CMS.DataEngine.InfoProviderExtensions for additional methods for individual objects retrieval. To get an instance of the interface's implementation use dependency injection or access the instance directly via the CMS.DataEngine.Provider<WebFarmServerTaskInfo>.Instance property.")]
[ObsoleteSince(28, 4)]
public interface IWebFarmServerTaskInfoProvider : IInfoProvider<WebFarmServerTaskInfo>
Inherited Members
Extension Methods

Methods

Add(int, int)

Creates WebFarmServerTaskInfo binding.

[Obsolete("Create a new WebFarmServerTaskInfo with specified ServerID and TaskID and use Set(WebFarmServerTaskInfo) instead.")]
[ObsoleteSince(28, 4)]
void Add(int webFarmServerId, int webFarmTaskId)

Parameters

webFarmServerId int

Web farm server ID.

webFarmTaskId int

Web farm task ID.

Get(int, int)

Gets an instance of the WebFarmServerTaskInfo binding structure.

[Obsolete("Use Get() and parametrized ObjectQuery to get the WebFarmServerTaskInfo with specified ServerID and TaskID.")]
[ObsoleteSince(28, 4)]
WebFarmServerTaskInfo Get(int webFarmServerId, int webFarmTaskId)

Parameters

webFarmServerId int

Web farm server ID.

webFarmTaskId int

Web farm task ID.

Returns

WebFarmServerTaskInfo

Returns an instance of WebFarmServerTaskInfo corresponding to given identifiers or null.

GetAsync(int, int, CancellationToken?)

Asynchronously gets an instance of the WebFarmServerTaskInfo binding structure.

[Obsolete("Use Get() and parametrized ObjectQuery to get the WebFarmServerTaskInfo with specified ServerID and TaskID.")]
[ObsoleteSince(28, 4)]
Task<WebFarmServerTaskInfo> GetAsync(int webFarmServerId, int webFarmTaskId, CancellationToken? cancellationToken = null)

Parameters

webFarmServerId int

Web farm server ID.

webFarmTaskId int

Web farm task ID.

cancellationToken CancellationToken?

The cancellation instruction.

Returns

Task<WebFarmServerTaskInfo>

Returns a task returning either an instance of WebFarmServerTaskInfo corresponding to given identifiers or null.

Remove(int, int)

Deletes WebFarmServerTaskInfo binding.

[Obsolete("Get the WebFarmServerTaskInfo with specified ServerID and TaskID using Get() and delete the task using Delete(WebFarmServerTaskInfo).")]
[ObsoleteSince(28, 4)]
void Remove(int webFarmServerId, int webFarmTaskId)

Parameters

webFarmServerId int

Web farm server ID.

webFarmTaskId int

Web farm task ID.