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); }
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); }
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; }
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); }
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); }
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); }
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; }
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; }
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; }
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) { }
public SelectDownloadTable(LazyDownloadArgs args) : base(args) { }
public VariableDownloadTable(LazyDownloadArgs args) : base(args) { _pages = new List <LazyDownloadPage>(); InitPages(); }