Пример #1
0
        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 notiComponent = new NotificationComponent();
            var currentTime = DateTime.Now;

            HttpContext.Current.Session["FeedbackTime"] = currentTime;
            HttpContext.Current.Session["UserTime"]     = currentTime;
            notiComponent.RegisterNotification(currentTime);
        }
Пример #3
0
        protected void Session_Start(object sender, EventArgs e)
        {
            int Id = 1;
            NotificationComponent NC = new NotificationComponent();
            var currentTime          = DateTime.Now;

            HttpContext.Current.Session["LastUpdated"] = currentTime;

            //Id = Int32.Parse(User.Identity.GetUserId());


            NC.RegisterNotification(currentTime);
        }
Пример #4
0
        protected async void Session_Start(object sender, EventArgs e)
        {
            NotificationComponent       NC  = new NotificationComponent();
            ApplicationMandatoryService obj = new ApplicationMandatoryService();
            var userId = HttpContext.Current.Session["UserId"] as string;

            if (userId != null)
            {
                var data = await obj.GetLastLogindb(userId);

                var currentTime = data.CreatedDateandTime;
                HttpContext.Current.Session["LastUpdated"] = currentTime;
                NC.RegisterNotification(currentTime);
            }
        }