예제 #1
0
        static void CreateSampleProject(string path)
        {
            var p = new WdcProject
            {
                Name             = "Project to extract data from example.com",
                MainScriptSource = "here the Javascritp code",
                ScriptsPath      = new List <Uri>
                {
                    new Uri("http://code.jquery.com/jquery-latest.min.js")
                }
            };

            p.SiteList.Add(new SiteTemplate
            {
                CallBackName = "HomePageCb",
                Description  = "This is the description for the homepage",
                Id           = "HomePage"
            });
            p.SiteList.Add(new SiteTemplate
            {
                CallBackName = "ResultPageCb",
                Description  = "This is the description for the result page",
                Id           = "ResultPage"
            });

            File.WriteAllText(path + "SampleProject.wdc", Json.Encode(p));
            Console.WriteLine("sample project created");
        }
예제 #2
0
 public ProjectRunner(WdcProject proj, AjRequestNext startUrl)
 {
     this.Project  = proj;
     this.StartUrl = startUrl;
 }