Exemplo n.º 1
0
        /// <summary>
        /// 构造
        /// </summary>
        /// <param name="ic"></param>
        public CVRInfoExTask(Infocenter ic)
        {
            _ic           = ic;
            _ic.Notified += _ic_Notified;
            _ieo          = OpFactory <InfoExOp> .Create(_ic);

            Status = CVRInfoExStatus.Unknown;
        }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
        public CVReSubmitTask(Infocenter ic, Datacenter dc)
        {
            _ic           = ic;
            _ic.Notified += _ic_Notified;

            _dc        = dc;
            _dc.Ended += _dc_Ended;
        }
Exemplo n.º 4
0
        public CVResRequestTask(Infocenter ic, Datacenter dc)
        {
            LocalFile = true;

            _ic           = ic;
            _ic.Notified += _ic_Notified;

            _dc        = dc;
            _dc.Ended += _dc_Ended;
        }
Exemplo n.º 5
0
        /// <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);
        }
Exemplo n.º 6
0
        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;
        }
Exemplo n.º 7
0
 public CVRecordset(Infocenter ic, string table) : base(ic)
 {
     _table = table;
 }