Example #1
0
        /// <summary>
        /// 重写基类方法
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="parms">预留  可空</param>
        /// <returns></returns>
        public override void RunTask(object[] parms = null)
        {
            String cernum = String.Empty;

            while (CerQueue.TryDequeue(out cernum))
            {
                /*这里写执行任务相关代码
                 *
                 */
                Console.WriteLine($"ERAC证书号{cernum}开始");
                //String html = CCC_Details(cernum);
                string postdata = GetPostData("ESV110434");
                GetDetailsPostData("ESV110434", postdata, ref postdataqueue);
                string detailspostdata = string.Empty;
                while (postdataqueue.TryDequeue(out detailspostdata))
                {
                    Dictionary <String, String> updata = ERAC_Details(detailspostdata, "ESV110434");
                    //上传数据入队
                    UpLoadQueue.Enqueue(updata);
                    Thread.Sleep(1);
                }
                Console.WriteLine($"ERAC证书号{cernum}完毕");
                Thread.Sleep(1);
            }
        }
Example #2
0
        public override void RunTask(object[] parms = null)
        {
            String cernum = String.Empty;

            while (CerQueue.TryDequeue(out cernum))
            {
                /*这里写执行任务相关代码
                 *
                 */
                Console.WriteLine($"TUVLY证书号{cernum}开始");
                Dictionary <String, String> updata = TUVLY_Details(cernum);
                Console.WriteLine($"TUVLY证书号{cernum}完毕");

                //上传数据入队
                UpLoadQueue.Enqueue(updata);

                Thread.Sleep(1);
            }
        }
Example #3
0
        /// <summary>
        /// 重写基类方法
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="parms">预留  可空</param>
        /// <returns></returns>
        public override void RunTask(object[] parms = null)
        {
            //throw new Exception("调用了基类执行任务方法");
            #region 执行任务结构示例
            String cernum = String.Empty;

            while (CerQueue.TryDequeue(out cernum))
            {
                /*这里写执行任务相关代码
                 *
                 */
                Console.WriteLine($"VDE证书号{cernum}开始");
                Dictionary <String, String> updata = VDE_Details(cernum);
                Console.WriteLine($"VDE证书号{cernum}完毕");
                //上传数据入队
                UpLoadQueue.Enqueue(updata);

                Thread.Sleep(1);
            }

            #endregion
        }
Example #4
0
        /// <summary>
        /// 重写基类方法
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="parms">预留  可空</param>
        /// <returns></returns>
        public override void RunTask(object[] parms = null)
        {
            #region 执行任务结构示例
            String cernum = String.Empty;

            while (CerQueue.TryDequeue(out cernum))
            {
                /*这里写执行任务相关代码
                 *
                 */
                Console.WriteLine($"ASTA证书号{cernum}开始");
                String html = GetHtml(cernum);
                Dictionary <String, String> updata = GetData(html);
                Console.WriteLine($"ASTA证书号{cernum}完毕");

                //上传数据入队
                UpLoadQueue.Enqueue(updata);

                Thread.Sleep(1);
            }

            #endregion
        }