Exemple #1
0
 private static void FireChangedPrivate(int nodeTypeId)
 {
     lock (PortletDependency._eventSync)
     {
         Changed.Fire(null, nodeTypeId);
     }
 }
Exemple #2
0
 private static void FireChangedPrivate(string path)
 {
     lock (PortletDependency._eventSync)
     {
         Changed.Fire(null, path);
     }
 }
 public static void FireChanged(string portletId)
 {
     lock (_eventSync)
     {
         Changed.Fire(null, portletId);
     }
 }
        public static void FireChanged(string portletId)
        {
            //lock (_eventSync)
            //{
            //    if (Changed != null)
            //    {
            //        try
            //        {
            //            //Console.WriteLine("!!!!!!!!!!!!Portlet Changed:" + portletId);
            //            //Console.WriteLine("PD Notify about: " + changed.GetInvocationList().Length);
            //            Changed(null, new EventArgs<string>(portletId));
            //            //Console.WriteLine("New client count: " + changed.GetInvocationList().Length);
            //        }
            //        catch (Exception ex)
            //        {
            //            Debug.WriteLine("Error in invoke Changed: " + ex);
            //        }
            //    }
            //    else
            //    {
            //        Debug.WriteLine("!!! List is empty");
            //    }
            //}

            lock (_eventSync)
            {
                Changed.Fire(null, portletId);
            }
        }
Exemple #5
0
 private static void FireChangedPrivate(string path)
 {
     lock (PortletDependency._eventSync)
     {
         //if (SubtreeChanged != null)
         //    SubtreeChanged(null, new EventArgs<string>(path));
         Changed.Fire(null, path);
     }
 }
 private static void FireChangedPrivate(int nodeId)
 {
     lock (PortletDependency._eventSync)
     {
         //if (Changed != null)
         //    Changed(null, new EventArgs<int>(nodeId));
         Changed.Fire(null, nodeId);
     }
 }
Exemple #7
0
 /// <summary>
 /// Notifies all subscribed event handlers about a change.
 /// </summary>
 public void Fire(object sender, T data)
 {
     _eventServer.Fire(sender, data);
 }