Class ServerRegistration
Represents a registered server in a multiple-servers environment.
Namespace: Umbraco.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class ServerRegistration : EntityBase, IServerRegistration, IServerAddress, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors
View SourceServerRegistration()
Initializes a new instance of the ServerRegistration class.
Declaration
public ServerRegistration()
ServerRegistration(Int32, String, String, DateTime, DateTime, Boolean, Boolean)
Initializes a new instance of the ServerRegistration class.
Declaration
public ServerRegistration(int id, string serverAddress, string serverIdentity, DateTime registered, DateTime accessed, bool isActive, bool isMaster)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The unique id of the server registration. |
System.String | serverAddress | The server URL. |
System.String | serverIdentity | The unique server identity. |
System.DateTime | registered | The date and time the registration was created. |
System.DateTime | accessed | The date and time the registration was last accessed. |
System.Boolean | isActive | A value indicating whether the registration is active. |
System.Boolean | isMaster | A value indicating whether the registration is master. |
ServerRegistration(String, String, DateTime)
Initializes a new instance of the ServerRegistration class.
Declaration
public ServerRegistration(string serverAddress, string serverIdentity, DateTime registered)
Parameters
Type | Name | Description |
---|---|---|
System.String | serverAddress | The server URL. |
System.String | serverIdentity | The unique server identity. |
System.DateTime | registered | The date and time the registration was created. |
Properties
View SourceAccessed
Gets the date and time the registration was last accessed.
Declaration
public DateTime Accessed { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
IsActive
Gets or sets a value indicating whether the server is active.
Declaration
public bool IsActive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsMaster
Gets or sets a value indicating whether the server is master.
Declaration
public bool IsMaster { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Registered
Gets the date and time the registration was created.
Declaration
public DateTime Registered { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
ServerAddress
Gets or sets the server URL.
Declaration
public string ServerAddress { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ServerIdentity
Gets or sets the server unique identity.
Declaration
public string ServerIdentity { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceToString()
Converts the value of this instance to its equivalent string representation.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |