protected void Session_Start(object sender, EventArgs e)
        {
            NotificationComponent NC = new NotificationComponent();
            var currentTime          = DateTime.Now;

            HttpContext.Current.Session["LastUpdated"] = currentTime;
            NC.RegisterNotification(currentTime);
        }
示例#2
0
        protected void Session_Start(object sender, EventArgs e)
        {
            NotificationComponent notiCom = new NotificationComponent();
            var currentDateTime           = DateTime.Now;

            HttpContext.Current.Session["LastTimeNotified"] = currentDateTime;
            notiCom.RegisterNotification();
        }