You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2010/03/19 13:52:39 UTC

svn commit: r925203 - /activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/IQueueBrowser.cs

Author: tabish
Date: Fri Mar 19 12:52:39 2010
New Revision: 925203

URL: http://svn.apache.org/viewvc?rev=925203&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQNET-206

Add IDisposable to the extends of IQueueBrowser

Modified:
    activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/IQueueBrowser.cs

Modified: activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/IQueueBrowser.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/IQueueBrowser.cs?rev=925203&r1=925202&r2=925203&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/IQueueBrowser.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/IQueueBrowser.cs Fri Mar 19 12:52:39 2010
@@ -15,22 +15,20 @@
  * limitations under the License.
  */
 
-using System.Collections;
-
 namespace Apache.NMS
 {
     /// <summary>
     /// A client uses a QueueBrowser object to look at messages on a queue without removing them.
-    /// 
+    ///
     /// The Enumeration method returns a java.util.Enumeration that is used to scan the queue's
-    /// messages. It may be an enumeration of the entire content of a queue, or it may contain 
+    /// messages. It may be an enumeration of the entire content of a queue, or it may contain
     /// only the messages matching a message selector.
-    /// 
-    /// Messages may be arriving and expiring while the scan is done. The NMS API does not 
-    /// require the content of an enumeration to be a static snapshot of queue content. Whether 
+    ///
+    /// Messages may be arriving and expiring while the scan is done. The NMS API does not
+    /// require the content of an enumeration to be a static snapshot of queue content. Whether
     /// these changes are visible or not depends on the NMS provider.
     /// </summary>
-    public interface IQueueBrowser : IEnumerable
+    public interface IQueueBrowser : System.Collections.IEnumerable, System.IDisposable
     {
         /// <summary>
         /// Closes the QueueBrowser.
@@ -39,16 +37,16 @@ namespace Apache.NMS
         /// If NMS Provider fails to close the Browser for some reason.
         /// </exception>
         void Close();
-        
+
         /// <value>
-        /// Gets this queue browser's message selector expression.  If no Message 
+        /// Gets this queue browser's message selector expression.  If no Message
         /// selector was specified than this method returns null.
         /// </value>
         /// <exception cref="Apache.NMS.NMSException">
         /// If NMS Provider fails to get the Message Selector for some reason.
         /// </exception>
         string MessageSelector { get; }
-        
+
         /// <value>
         /// Gets the queue associated with this queue browser.
         /// </value>