activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgo...@apache.org
Subject svn commit: r685739 - /activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/main/csharp/MessageProducer.cs
Date Thu, 14 Aug 2008 01:14:12 GMT
Author: jgomes
Date: Wed Aug 13 18:14:12 2008
New Revision: 685739

URL: http://svn.apache.org/viewvc?rev=685739&view=rev
Log:

Fixes [AMQNET-104]. (See https://issues.apache.org/activemq/browse/AMQNET-104)

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

Modified: activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/main/csharp/MessageProducer.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/main/csharp/MessageProducer.cs?rev=685739&r1=685738&r2=685739&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/main/csharp/MessageProducer.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/main/csharp/MessageProducer.cs Wed
Aug 13 18:14:12 2008
@@ -173,18 +173,21 @@
 				}
 			}
 		}
-		
-		
-		
-		public void Dispose()
+
+		public void Close()
 		{
-			if( messageQueue!=null )
+			if(messageQueue != null)
 			{
 				messageQueue.Dispose();
 				messageQueue = null;
 			}
 		}
 		
+		public void Dispose()
+		{
+			Close();
+		}
+		
 		public IMessage CreateMessage()
 		{
 			return session.CreateMessage();



Mime
View raw message