示例#1
0
 public void Execute(IJobExecutionContext context)
 {
     if (PingNetwork())
     {
         get_all_site_Result[] siteResult;
         using (var sites = new digimarketEntities1().get_all_site())
         {
             siteResult = sites.ToArray <get_all_site_Result>();
         }
         foreach (var site in siteResult)
         {
             DateTime date = DateTime.Now;
             deleteExtra(site.site_url);
             insertNew(site.site_url);
             DateTime date2 = DateTime.Now;
         }
     }
 }