Table of Contents

Class WebFarmServerInfo

Namespace
CMS.WebFarmSync
Assembly
CMS.WebFarmSync.dll

WebFarmServerInfo data container class.

[InfoCache(InfoCacheBy.Name, LoadEagerly = true, Priority = InfoCachePriority.NotRemovable)]
public class WebFarmServerInfo : AbstractInfo<WebFarmServerInfo, IWebFarmServerInfoProvider>, IExtensible, IInfo, IAdvancedDataContainer, ICMSObject, IHierarchicalDataContainer, IDataContainer, ISimpleDataContainer, IVirtualHierarchicalObject, IHierarchicalObject, INameIndexable, IMacroObject, IInfoWithId, IInfoWithGuid, IInfoWithName
Inheritance
object
WebFarmServerInfo
Implements
Inherited Members
Extension Methods

Constructors

WebFarmServerInfo()

Constructor - Creates an empty WebFarmServerInfo object.

public WebFarmServerInfo()

WebFarmServerInfo(DataRow)

Constructor - Creates a new WebFarmServerInfo object from the given DataRow.

public WebFarmServerInfo(DataRow dr)

Parameters

dr DataRow

Fields

OBJECT_TYPE

Object type

public const string OBJECT_TYPE = "cms.webfarmserver"

Field Value

string

TYPEINFO

Type information.

public static ObjectTypeInfo TYPEINFO

Field Value

ObjectTypeInfo

Properties

ServerDisplayName

Server display name.

[DatabaseField]
public virtual string ServerDisplayName { get; set; }

Property Value

string

ServerEnabled

Indicated whether server is enabled.

[DatabaseField]
public virtual bool ServerEnabled { get; set; }

Property Value

bool

ServerGUID

Server GUID.

[DatabaseField]
public virtual Guid ServerGUID { get; set; }

Property Value

Guid

ServerID

Server ID.

[DatabaseField]
public virtual int ServerID { get; set; }

Property Value

int

ServerLastModified

Object last modified.

[DatabaseField]
public virtual DateTime ServerLastModified { get; set; }

Property Value

DateTime

ServerName

Server name.

[DatabaseField]
public virtual string ServerName { get; set; }

Property Value

string

Status

Last known status of current server.

public WebFarmServerStatusEnum Status { get; }

Property Value

WebFarmServerStatusEnum

Methods

DeleteDataInternal()

Deletes main object with its dependencies via stored procedure "Proc_CMS_WebFarmServer_Delete".

protected override void DeleteDataInternal()

DeleteDataInternalAsync(CancellationToken)

Asynchronously deletes main object with its dependencies via stored procedure "Proc_CMS_WebFarmServer_Delete".

protected override Task DeleteDataInternalAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

The cancellation instruction.

Returns

Task

DeleteObject()

Deletes the object using appropriate provider.

protected override void DeleteObject()

Equals(WebFarmServerInfo)

Determines whether the specified object instances are considered equal.

protected bool Equals(WebFarmServerInfo other)

Parameters

other WebFarmServerInfo

Object to compare.

Returns

bool

Equals(object)

Determines whether the specified object instances are considered equal.

public override bool Equals(object obj)

Parameters

obj object

Object to compare.

Returns

bool

GetHashCode()

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int

SetObject()

Updates the object using appropriate provider.

protected override void SetObject()