Beispiel #1
0
            /*public static RobotEvtArgs OnPageDownloaded(Uri url, HtmlDocument doc, HttpWebResponse response)
             * {
             *  RobotEvtArgs args = new Robot.RobotEvtArgs();
             *
             *  args.EvtType = RobotEvtType.PageDownloaded;
             *  args.Url = url;
             *  args.Document = doc;
             *  args.Response = response;
             *
             *  return args;
             * }*/

            public static RobotEvtArgs Finished()
            {
                RobotEvtArgs args = new Robot.RobotEvtArgs();

                args.EvtType = RobotEvtType.Finish;

                return(args);
            }
Beispiel #2
0
            public static RobotEvtArgs UrlsOnPageFound(Uri url, TypedUrl[] foundUrls)
            {
                RobotEvtArgs args = new Robot.RobotEvtArgs();

                args.EvtType    = RobotEvtType.UrlsOnPageFound;
                args.Url        = url;
                args.UrlsOnPage = foundUrls;

                return(args);
            }
Beispiel #3
0
            public static RobotEvtArgs OnPageResponse(Uri foundUri, HttpWebResponse response, HtmlDocument doc)
            {
                RobotEvtArgs args = new Robot.RobotEvtArgs();

                args.EvtType  = RobotEvtType.PageResponse;
                args.Url      = foundUri;
                args.Response = response;
                args.Document = doc;

                return(args);
            }