protected void Session_Start(object sender, EventArgs e) { NotificationComponent NC = new NotificationComponent(); var currentTime = DateTime.Now; HttpContext.Current.Session["LastUpdated"] = currentTime; NC.RegisterNotification(currentTime); }
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); }
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); }
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); } }