public static void RunSiteTask()
{
int intSend = ;
SystemTimersTimer t = new SystemTimersTimer( * intSend);//每小时更新一个
tElapsed += new SystemTimersElapsedEventHandler(RunUpdateSearchAdsImgTime);
tAutoReset = true;
tEnabled = true;
GCKeepAlive(t);
}
private static void RunUpdateSearchAdsImgTime(object sender SystemTimersElapsedEventArgs e)
{
if (SqlHelperUpInfo_int(ThreadingUpAdsImgSearchTime null) <= )
{
string strErrorMessage = stringEmpty;
string strPage = stringEmpty;
string strIP =stringEmpty;
// 在出现未处理的错误时运行的代码通常只处理该异常就好
strPage = 服务器执行事件;
strIP = 服务器;
strErrorMessage = 站点定时更新关键字广告表的搜索时间失败注有可能当前还没有任何订购关键字广告服务;
GlobalDataDALRecordSysLog(strPage strErrorMessage strIP );
}
}