Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the MonitoringServer class
        /// </summary>
        /// <param name="port">The port used by the server to listen.</param>
        /// <param name="host">The host used to publish the service.</param>
        /// <param name="serverUserName">A username for basic authentication.</param>
        /// <param name="serverPassword">A password for basic authentication.</param>
        public MonitoringServer(int port, string host, string serverUserName, string serverPassword)
        {
            this.hostName   = host;
            this.serverPort = port;
            this.username   = serverUserName;
            this.password   = serverPassword;

            if (instance == null)
            {
                instance = this;
            }
        }
        /// <summary>
        /// Initializes a new instance of the MonitoringServer class
        /// </summary>
        /// <param name="port">The port used by the server to listen.</param>
        /// <param name="host">The host used to publish the service.</param>
        /// <param name="serverUserName">A username for basic authentication.</param>
        /// <param name="serverPassword">A password for basic authentication.</param>
        public MonitoringServer(int port, string host, string serverUserName, string serverPassword)
        {
            this.hostName = host;
            this.serverPort = port;
            this.username = serverUserName;
            this.password = serverPassword;

            if (instance == null)
            {
                instance = this;
            }
        }