Represents a registered server in a multiple-servers environment.
InheritanceSystem.Object
Namespace: Umbraco.Cms.Core.Models Assembly: Umbraco.Core.dll Syntaxpublic class ServerRegistration : EntityBase, IServerRegistration, IServerAddress, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors View Source ServerRegistration()
Initializes a new instance of the ServerRegistration class.
Declarationpublic ServerRegistration()
View Source ServerRegistration(Int32, String, String, DateTime, DateTime, Boolean, Boolean)
Initializes a new instance of the ServerRegistration class.
Declarationpublic ServerRegistration(int id, string serverAddress, string serverIdentity, DateTime registered, DateTime accessed, bool isActive, bool isSchedulingPublisher)
Parameters Type Name Description System.Int32 id
The unique id of the server registration.
System.String serverAddressThe server URL.
System.String serverIdentityThe unique server identity.
DateTime registeredThe date and time the registration was created.
DateTime accessedThe date and time the registration was last accessed.
System.Boolean isActiveA value indicating whether the registration is active.
System.Boolean isSchedulingPublisherA value indicating whether the registration is scheduling publisher.
View Source ServerRegistration(String, String, DateTime)Initializes a new instance of the ServerRegistration class.
Declarationpublic ServerRegistration(string serverAddress, string serverIdentity, DateTime registered)
Parameters Type Name Description System.String serverAddress
The server URL.
System.String serverIdentityThe unique server identity.
DateTime registeredThe date and time the registration was created.
Properties View Source AccessedGets the date and time the registration was last accessed.
Declarationpublic DateTime Accessed { get; set; }
Property Value Type Description DateTime View Source IsActive
Gets or sets a value indicating whether the server is active.
Declarationpublic bool IsActive { get; set; }
Property Value Type Description System.Boolean View Source IsSchedulingPublisher
Gets or sets a value indicating whether the server has the SchedulingPublisher role
Declarationpublic bool IsSchedulingPublisher { get; set; }
Property Value Type Description System.Boolean View Source Registered
Gets the date and time the registration was created.
Declarationpublic DateTime Registered { get; set; }
Property Value Type Description DateTime View Source ServerAddress
Gets or sets the server URL.
Declarationpublic string ServerAddress { get; set; }
Property Value Type Description System.String View Source ServerIdentity
Gets or sets the server unique identity.
Declarationpublic string ServerIdentity { get; set; }
Property Value Type Description System.String Methods View Source ToString()
Converts the value of this instance to its equivalent string representation.
Declarationpublic override string ToString()
Returns Type Description System.String
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4