using System;using System.Collections.Generic;using System.Linq;using System.Threading;using System.Web;using System.Web.Optimization;using System.Web.Routing;using System.Web.Security;using System.Web.SessionState;using BLL;using DAL;using DingTalk.Api.Response;using Model;using Newtonsoft.Json.Linq;using DingTalk.Api;using DingTalk.Api.Request;//using MyWeb.Common;using static DingTalk.Api.Response.OapiDepartmentListResponse;using System.Text;using System.Data;using System.Data.SqlClient;using static DingTalk.Api.Response.OapiAttendanceListscheduleResponse;using Newtonsoft.Json;using static DingTalk.Api.Response.OapiProcessinstanceGetResponse;using System.Configuration;using System.Net;using System.IO;namespace MyProject{ public class Global : HttpApplication { void Application_Start(object sender, EventArgs e) { // 在应用程序启动时运行的代码。更新完,打 Thread t1 = new Thread(new ThreadStart(time001)); t1.Start(); Thread t2 = new Thread(new ThreadStart(time002)); t2.Start(); Thread t3 = new Thread(new ThreadStart(time003)); t3.Start(); } #region 定时器---获取钉钉全部通讯录人员 private void time001() { System.Timers.Timer MyTimerGetdingdingUser = new System.Timers.Timer(); //MyTimerGetdingdingUser.Elapsed += GetMyUser; MyTimerGetdingdingUser.Interval = 1000 * 60 * 60;//每天触发一次1000是一秒 //MyTimerGetdingdingUser.Interval = 1000 * 120;//每天触发一次1000是一秒 MyTimerGetdingdingUser.Enabled = true; MyTimerGetdingdingUser.AutoReset = true; MyTimerGetdingdingUser.Start(); MyTimerGetdingdingUser.Elapsed += new System.Timers.ElapsedEventHandler(GetMyUser); }
科学探索频道,专天文航天,UFO探索,生物·自然,历史考古,人文地理,生活百科,华夏地理,时尚家居,别墅家居,别墅装修,花园生活花园设计,小户家居,书房装修,国际足球,F1赛车,欧冠,英超,意甲,西甲,德甲,篮球,NBA,赛车,网球,香车美女,ATP,WTA,体育新闻,曼联,阿森纳,欧冠直播,英超,意甲直播,西甲,德甲,篮球,比分直播,AC米兰