ServerRegistration
Represents a registered server in a multiple-servers environment.
The ServerRegistration class represents a registered server in a multiple-servers environment.
Namespace:
Umbraco.Cms.Core.ModelsAssembly:
Umbraco.Core.dll
All samples in this document will require references to the following dll:
Umbraco.Core.dll
All samples in this document will require the following using statement:
using Umbraco.Cms.Core.Models;Constructors
new ServerRegistration(string serverAddress, string serverIdentity, DateTime registered)
Constructor for creating a new ServerRegistration object. The necessary parameters are the serverAddress as a string, the serverIdentity as a string and the date and time of registration as a DateTime
new ServerRegistration(int id, string serverAddress, string serverIdentity, DateTime registered, DateTime accessed, bool isActive, bool isSchedulingPublisher)
A second constructor exists but it should not be used because it is used to reconstruct a ServerRegistration from the data source.
Properties
.Accessed
Gets the date and time the registration was last accessed.
.IsActive
Gets or sets a value indicating whether the server is active.
.IsSchedulingPublisher
Gets or sets a value indicating whether the server has the SchedulingPublisher role
.Registered
Gets the date and time the registration was created.
.ServerAddress
Gets or sets the server URL.
.ServerIdentity
Gets or sets the server unique identity.
Last updated