Search Results for

    Show / Hide Table of Contents
    View Source

    Class ServerRegistration

    Represents a registered server in a multiple-servers environment.

    Inheritance
    System.Object
    BeingDirtyBase
    EntityBase
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public class ServerRegistration : EntityBase, IServerRegistration, IServerAddress, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty

    Constructors

    View Source

    ServerRegistration()

    Initializes a new instance of the ServerRegistration class.

    Declaration
    public ServerRegistration()
    View Source

    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 isSchedulingPublisher)
    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.

    DateTime registered

    The date and time the registration was created.

    DateTime accessed

    The date and time the registration was last accessed.

    System.Boolean isActive

    A value indicating whether the registration is active.

    System.Boolean isSchedulingPublisher

    A value indicating whether the registration is scheduling publisher.

    View Source

    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.

    DateTime registered

    The date and time the registration was created.

    Properties

    View Source

    Accessed

    Gets the date and time the registration was last accessed.

    Declaration
    public DateTime Accessed { get; set; }
    Property Value
    Type Description
    DateTime
    View Source

    IsActive

    Gets or sets a value indicating whether the server is active.

    Declaration
    public 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

    Declaration
    public bool IsSchedulingPublisher { get; set; }
    Property Value
    Type Description
    System.Boolean
    View Source

    Registered

    Gets the date and time the registration was created.

    Declaration
    public DateTime Registered { get; set; }
    Property Value
    Type Description
    DateTime
    View Source

    ServerAddress

    Gets or sets the server URL.

    Declaration
    public string ServerAddress { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    ServerIdentity

    Gets or sets the server unique identity.

    Declaration
    public 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.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ServerRegistration()
      • ServerRegistration(Int32, String, String, DateTime, DateTime, Boolean, Boolean)
      • ServerRegistration(String, String, DateTime)
    • Properties
      • Accessed
      • IsActive
      • IsSchedulingPublisher
      • Registered
      • ServerAddress
      • ServerIdentity
    • Methods
      • ToString()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX