Пример #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)
 {
 }