/** * A helper method to return a descriptive string for the topic or queue * @param destination * * @return a descriptive string for this queue or topic */ public static String Inspect(ActiveMQDestination destination) { if (destination is ITopic) { return("Topic(" + destination.ToString() + ")"); } else { return("Queue(" + destination.ToString() + ")"); } }
/// <summary> /// A helper method to return a descriptive string for the topic or queue /// </summary> /// <param name="destination"></param> /// <returns>a descriptive string for this queue or topic</returns> public static String Inspect(ActiveMQDestination destination) { if(destination is ITopic) { return "Topic(" + destination.ToString() + ")"; } else { return "Queue(" + destination.ToString() + ")"; } }