Example #1
0
 public void UnsubscribeAll()
 {
     if (OnEventRaised != null)
     {
         if (OnEventRaised.GetInvocationList() != null)
         {
             foreach (System.Delegate d in OnEventRaised.GetInvocationList())
             {
                 OnEventRaised -= d as UnityAction <bool>;
             }
         }
     }
 }
Example #2
0
 public void RaisedEvent(PipelineEvent pEvent)
 {
     if (OnEventRaised == null)
     {
         return;
     }
     Parallel.ForEach(OnEventRaised.GetInvocationList(), t => {
         ((EventHandler <PipelineEventEventArgs>)t).BeginInvoke(
             this, new PipelineEventEventArgs()
         {
             Event = pEvent
         }, null, null);
     });
 }
Example #3
0
 public Delegate[] GetOnEventRaisedInvocationsList()
 {
     return(OnEventRaised?.GetInvocationList());
 }