Example #1
0
 private void Reset()
 {
     this.Id    = 0;
     _client    = null;
     _instance  = null;
     _connected = false;
 }
Example #2
0
        /// <summary>
        /// 获取Infocenter实例
        /// </summary>
        /// <param name="ip"></param>
        /// <param name="port"></param>
        /// <param name="user"></param>
        /// <param name="pwd"></param>
        /// <returns></returns>
        public static Infocenter Create(string ip, int port, string user, string pwd)
        {
            if (_instance == null)
            {
                _instance = new Infocenter(ip, port, user, pwd);
            }
            else
            {
                _instance.Notified?.Invoke(CVResult.InfocenterAlreadyConnected, _instance);
            }

            return(_instance);
        }
Example #3
0
 public Parser(Infocenter c)
 {
     _client = c;
 }
Example #4
0
 public InfocenterParser(Infocenter c) : base(c)
 {
 }