コード例 #1
0
        protected void Session_Start(object sender, EventArgs e)
        {
            NotificationComponent notiCom = new NotificationComponent();
            var currentDateTime           = DateTime.Now;

            HttpContext.Current.Session["LastTimeNotified"] = currentDateTime;
            notiCom.RegisterNotification();
        }
コード例 #2
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);
        }
コード例 #3
0
        public void SendNotifications(int cdUsuario)
        {
            NotificationComponent NC = new NotificationComponent();

            NC.SendNotifications(cdUsuario, Context.ConnectionId);
        }