/// <summary> /// 构造 /// </summary> /// <param name="ic"></param> public CVRInfoExTask(Infocenter ic) { _ic = ic; _ic.Notified += _ic_Notified; _ieo = OpFactory <InfoExOp> .Create(_ic); Status = CVRInfoExStatus.Unknown; }
/// <summary> /// 构造 /// </summary> /// <param name="ic"></param> public CVRTableTask(Infocenter ic) { _timer.Elapsed += _timer_Elapsed; _ic = ic; _ic.Notified += _ic_Notified; _to = OpFactory <TableOp> .Create(_ic); }
public CVReSubmitTask(Infocenter ic, Datacenter dc) { _ic = ic; _ic.Notified += _ic_Notified; _dc = dc; _dc.Ended += _dc_Ended; }
public CVResRequestTask(Infocenter ic, Datacenter dc) { LocalFile = true; _ic = ic; _ic.Notified += _ic_Notified; _dc = dc; _dc.Ended += _dc_Ended; }
/// <summary> /// 仅连接一次 /// 若需要再次连接,需要Disconnect /// </summary> /// <param name="user"></param> /// <param name="pwd"></param> public static Infocenter Connect(string ip, int port, string user, string pwd) { Ip = ip; Port = port; User = user; Pwd = pwd; //连接服务器 Ic = Infocenter.Create(Ip, Port, user, pwd); Ic.Start(); return(Ic); }
public CVResDownloadTask(Infocenter ic, Datacenter dc) { _ic = ic; _ic.Notified += _ic_Notified; _dc = dc; _dc.Began += _dc_Began; _dc.Stepped += _dc_Stepped; _dc.Ended += _dc_Ended; _to = OpFactory <TableOp> .Create(_ic); _to.Format = ResultFormat.Xml; UseMemory = false; }
public CVRecordset(Infocenter ic, string table) : base(ic) { _table = table; }