protected void Session_Start(object sender, EventArgs e) { NotificationComponent notiCom = new NotificationComponent(); var currentDateTime = DateTime.Now; HttpContext.Current.Session["LastTimeNotified"] = currentDateTime; notiCom.RegisterNotification(); }
protected void Session_Start(object sender, EventArgs e) { NotificationComponent NC = new NotificationComponent(); var currentTime = DateTime.Now; HttpContext.Current.Session["LastUpdated"] = currentTime; NC.RegisterNotification(currentTime); }
public void SendNotifications(int cdUsuario) { NotificationComponent NC = new NotificationComponent(); NC.SendNotifications(cdUsuario, Context.ConnectionId); }