private void Reset() { this.Id = 0; _client = null; _instance = null; _connected = false; }
/// <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); }
public Parser(Infocenter c) { _client = c; }
public InfocenterParser(Infocenter c) : base(c) { }