Exemple #1
0
 static void Main(string[] args)
 {
     BatchUpdateItemKeywordsBP.BizLogFile = "Log\\biz2.log";
     //if (args != null && args.Any())
     //{
     //    int productId;
     //    if (int.TryParse(args[0], out productId))
     //    {
     //        BatchUpdateItemKeywordsBP.UpdateKeywords0ByProductSysNo(productId);
     //    }
     //    else if (args[0].ToLower() == "updatekeywords0")
     //    {
     //        BatchUpdateItemKeywordsBP.UpdateKeywords0();
     //    }
     //    else if (args[0].ToLower() == "updatekeywords0fromqueue")
     //    {
     //        BatchUpdateItemKeywordsBP.UpdateKeywords0Queue();
     //    }
     //    else
     //    {
     //        Console.WriteLine("非法的参数");
     //    }
     //}
     BatchUpdateItemKeywordsBP.UpdateKeywords0();
 }
Exemple #2
0
 public void Run(JobContext context)
 {
     BatchUpdateItemKeywordsBP.jobContext = context;
     BatchUpdateItemKeywordsBP.BizLogFile = ConfigurationManager.AppSettings["BizLogFile"];
     BatchUpdateItemKeywordsBP.UpdateKeywords0Queue();
 }