Exemple #1
0
 public void UnsubscribeAll()
 {
     if (OnEventRaised != null)
     {
         if (OnEventRaised.GetInvocationList() != null)
         {
             foreach (System.Delegate d in OnEventRaised.GetInvocationList())
             {
                 OnEventRaised -= d as UnityAction <bool>;
             }
         }
     }
 }
Exemple #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);
     });
 }
Exemple #3
0
 public Delegate[] GetOnEventRaisedInvocationsList()
 {
     return(OnEventRaised?.GetInvocationList());
 }