예제 #1
0
        public static LazyDownloadArgs CreateWebRequestArgs(IRuntime runtime, int line, int threadCount, string url)
        {
            var args = new LazyDownloadArgs(runtime, threadCount);

            args.Wires.Add(new WebRequestHttpWire(url, runtime, line));
            return(args);
        }
예제 #2
0
        public static LazyDownloadArgs CreateJavaScriptArgs(IRuntime runtime, int line, int threadCount, string cssElement, int cssTimeout, string url, string js)
        {
            var args = new LazyDownloadArgs(runtime, threadCount);

            args.Wires.Add(new SeleniumExecJsHttpWire(url, cssElement, cssTimeout, runtime, line, js));
            return(args);
        }
예제 #3
0
        public static LazyDownloadArgs CreateSeleniumArgs(IRuntime runtime, int line, int threadCount, string cssElement, int cssTimeout, Table<ResultRow> table)
        {
            var args = new LazyDownloadArgs(runtime, threadCount);
            foreach (var row in table)
                args.Wires.Add(new SeleniumHttpWire(row[0].ToString(), cssElement, cssTimeout, runtime, line));

            return args;
        }
예제 #4
0
        public static LazyDownloadArgs CreateSeleniumArgs(IRuntime runtime, int line, int threadCount, string cssElement, int cssTimeout, Table <ResultRow> table)
        {
            var args = new LazyDownloadArgs(runtime, threadCount);

            foreach (var row in table)
            {
                args.Wires.Add(new SeleniumHttpWire(row[0].ToString(), cssElement, cssTimeout, runtime, line));
            }

            return(args);
        }
예제 #5
0
        public static LazyDownloadArgs CreateWebRequestArgs(IRuntime runtime, int line, int threadCount, Table <ResultRow> table)
        {
            var args = new LazyDownloadArgs(runtime, threadCount);

            foreach (var row in table)
            {
                args.Wires.Add(new WebRequestHttpWire(row[0].ToString(), runtime, line));
            }

            return(args);
        }
예제 #6
0
        public static LazyDownloadArgs CreateJavaScriptArgs(IRuntime runtime, int line, int threadCount, string cssElement, int cssTimeout, Table <ResultRow> table, string js)
        {
            var args = new LazyDownloadArgs(runtime, threadCount);

            foreach (var row in table)
            {
                if (row[0] != null)
                {
                    args.Wires.Add(new SeleniumExecJsHttpWire(row[0].ToString(), cssElement, cssTimeout, runtime, line, js));
                }
            }
            return(args);
        }
예제 #7
0
        protected ThreadedDownloadTable(LazyDownloadArgs args)
            : base()
        {
            Wires    = new Queue <IHttpWire>();
            _results = new Queue <DownloadPage>();

            _args    = args;
            _running = false;

            foreach (var wire in args.Wires)
            {
                Wires.Enqueue(wire);
            }

            _args.Runtime.TotalOperations += args.Wires.Count;
            _callOnProgres = true;
        }
예제 #8
0
        public static LazyDownloadArgs CreateWebRequestArgs(IRuntime runtime, int line, int threadCount, Table<ResultRow> table)
        {
            var args = new LazyDownloadArgs(runtime, threadCount);
            foreach (var row in table)
                args.Wires.Add(new WebRequestHttpWire(row[0].ToString(), runtime, line));

            return args;
        }
예제 #9
0
 public static LazyDownloadArgs CreateWebRequestArgs(IRuntime runtime, int line, int threadCount, string url)
 {
     var args = new LazyDownloadArgs(runtime, threadCount);
     args.Wires.Add(new WebRequestHttpWire(url, runtime, line));
     return args;
 }
예제 #10
0
 public static LazyDownloadArgs CreateSeleniumArgs(IRuntime runtime, int line, int threadCount, string cssElement, int cssTimeout, string url)
 {
     var args = new LazyDownloadArgs(runtime, threadCount);
     args.Wires.Add(new SeleniumHttpWire(url, cssElement, cssTimeout, runtime, line));
     return args;
 }
        public DynamicObjectDownloadTable(LazyDownloadArgs args)
            : base(args)

        {
        }
예제 #12
0
        public SelectDownloadTable(LazyDownloadArgs args)
            : base(args)

        {
        }
예제 #13
0
 public VariableDownloadTable(LazyDownloadArgs args)
     : base(args)
 {
     _pages = new List <LazyDownloadPage>();
     InitPages();
 }
예제 #14
0
 public SelectDownloadTable(LazyDownloadArgs args)
     : base(args)
 {
 }