Table of Contents

Class WebFarmServerInfoProvider

Namespace
CMS.WebFarmSync
Assembly
CMS.WebFarmSync.dll

Class providing WebFarmServerInfo management.

[ProviderInterface(typeof(IWebFarmServerInfoProvider))]
public class WebFarmServerInfoProvider : AbstractInfoProvider<WebFarmServerInfo, WebFarmServerInfoProvider>, IInfoProvider, ICustomizableProvider, IBulkOperationProvider, IWebFarmProvider, IInfoValidator<WebFarmServerInfo>, IInfoByGuidProvider<WebFarmServerInfo>, IBulkInfoProvider<WebFarmServerInfo>, IWebFarmServerInfoProvider, IInfoProvider<WebFarmServerInfo>, IInfoByIdProvider<WebFarmServerInfo>, IInfoByNameProvider<WebFarmServerInfo>
Inheritance
object
WebFarmServerInfoProvider
Implements
Inherited Members
Extension Methods

Constructors

WebFarmServerInfoProvider()

Constructor

public WebFarmServerInfoProvider()

Methods

DeleteInfo(WebFarmServerInfo)

Deletes the object to the database.

protected override void DeleteInfo(WebFarmServerInfo info)

Parameters

info WebFarmServerInfo

Object to delete

GetAllEnabledServers()

Returns all the enabled servers records.

[Obsolete("Method is no longer used by the system and will be removed.")]
[ObsoleteSince(29, 5)]
public static ObjectQuery<WebFarmServerInfo> GetAllEnabledServers()

Returns

ObjectQuery<WebFarmServerInfo>

GetWebFarmServerInfoByGUID(Guid)

Returns object with specified GUID.

[Obsolete("Method is no longer used by the system and will be removed.")]
[ObsoleteSince(29, 5)]
public static WebFarmServerInfo GetWebFarmServerInfoByGUID(Guid guid)

Parameters

guid Guid

Object GUID

Returns

WebFarmServerInfo

SetInfo(WebFarmServerInfo)

Inserts or Updates the object to the database.

protected override void SetInfo(WebFarmServerInfo info)

Parameters

info WebFarmServerInfo

Object to insert / update

SetServerTasks(string, int)

Sets task to server.

[Obsolete("Method is no longer used by the system and will be removed.")]
[ObsoleteSince(29, 5)]
public static void SetServerTasks(string serverName, int taskId)

Parameters

serverName string

Server name

taskId int

Task ID

SetServerTasksInternal(string, int)

Sets task to server.

[Obsolete("Method is no longer used by the system and will be removed.")]
[ObsoleteSince(29, 5)]
protected void SetServerTasksInternal(string serverName, int taskId)

Parameters

serverName string

Server name

taskId int

Task ID