Ejemplo n.º 1
0
 static private void AddToDestinationInterimMessageQueue(DestinationInfo[] destinations, BoundReflectInsightPackage boundPackage)
 {
     foreach (DestinationInfo dInfo in destinations)
     {
         if (dInfo.Enabled &&
             dInfo.Listeners.Length != 0 &&
             (dInfo.BindingGroupIds.Count == 0 || dInfo.BindingGroupIds.Contains(boundPackage.BindingGroupId)) &&
             dInfo.Filter.FilterMessage(boundPackage.Package) != null)
         {
             dInfo.AddInterimMessageQueue(boundPackage.Package);
         }
     }
 }
 static public void SendMessage(BoundReflectInsightPackage boundPackage)
 {
     AddAndProcessMessages(() => Messages.Add(boundPackage));
 }