static void Main(string[] args) { //int ch; //HttpWebRequest req = (HttpWebRequest)WebRequest.Create( "http://mozaika.dn.ua/vakansy/" ); //HttpWebResponse resp = (HttpWebResponse)req.GetResponse(); //Stream stream = resp.GetResponseStream(); //for( int i = 1; ; i++ ) //{ // ch = stream.ReadByte(); // if( ch == -1 ) // break; // Console.Write( (char)ch ); //} //resp.Close(); WorkFinder htd = new WorkFinder(); // Console.WriteLine( htd.ReadHTML() ); var d = htd.GetJobLinksInMozaika(); foreach (var item in d.ToArray()) { Console.WriteLine("{0} | {1}", item.Title, item.Price); Console.WriteLine("{0}", item.Url); Console.WriteLine(); } Console.ReadKey(); }
private static void AssignJobInfo(WorkFinder finder, TaskType type, IJobDetail job, string tid, DtuNode dtu, IList <uint> sensors, TaskResultConsumer consumer, int taskid = 0) { job.JobDataMap.Put("INFO", new JobInfo { Finder = finder, Type = type, TID = tid, Dtu = dtu, Sensors = sensors, Consumer = consumer, ID = taskid }); }