コード例 #1
0
 public static bool IsTempDestinationAdvisoryTopic(ActiveMQDestination destination)
 {
     if (destination.IsComposite)
     {
         ActiveMQDestination[] compositeDestinations = destination.GetCompositeDestinations();
         bool containsNonTempDests = false;
         for (int i = 0; i < compositeDestinations.Length; i++)
         {
             if (!IsTempDestinationAdvisoryTopic(compositeDestinations[i]))
             {
                 containsNonTempDests = true;
             }
         }
         return(!containsNonTempDests);
     }
     else
     {
         return(destination.Equals(TEMP_QUEUE_ADVISORY_TOPIC) ||
                destination.Equals(TEMP_TOPIC_ADVISORY_TOPIC));
     }
 }
コード例 #2
0
 public static bool IsDestinationAdvisoryTopic(ActiveMQDestination destination)
 {
     if (destination.IsComposite)
     {
         ActiveMQDestination[] compositeDestinations = destination.GetCompositeDestinations();
         for (int i = 0; i < compositeDestinations.Length; i++)
         {
             if (IsDestinationAdvisoryTopic(compositeDestinations[i]))
             {
                 return(true);
             }
         }
         return(false);
     }
     else
     {
         return(destination.Equals(TEMP_QUEUE_ADVISORY_TOPIC) ||
                destination.Equals(TEMP_TOPIC_ADVISORY_TOPIC) ||
                destination.Equals(QUEUE_ADVISORY_TOPIC) ||
                destination.Equals(TOPIC_ADVISORY_TOPIC));
     }
 }