activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgo...@apache.org
Subject svn commit: r924559 - in /activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/main/csharp: TemporaryQueue.cs TemporaryTopic.cs
Date Wed, 17 Mar 2010 23:42:17 GMT
Author: jgomes
Date: Wed Mar 17 23:42:16 2010
New Revision: 924559

URL: http://svn.apache.org/viewvc?rev=924559&view=rev
Log:
Add support for new inheritance hierarchy for QueueBrowser support.
Fixes [AMQNET-244]. (See https://issues.apache.org/activemq/browse/AMQNET-244)

Modified:
    activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/main/csharp/TemporaryQueue.cs
    activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/main/csharp/TemporaryTopic.cs

Modified: activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/main/csharp/TemporaryQueue.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/main/csharp/TemporaryQueue.cs?rev=924559&r1=924558&r2=924559&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/main/csharp/TemporaryQueue.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/main/csharp/TemporaryQueue.cs Wed Mar
17 23:42:16 2010
@@ -17,7 +17,7 @@
 
 namespace Apache.NMS.EMS
 {
-	class TemporaryQueue : Apache.NMS.EMS.Destination, Apache.NMS.ITemporaryQueue
+	class TemporaryQueue : Apache.NMS.EMS.Queue, Apache.NMS.ITemporaryQueue
 	{
 		public TIBCO.EMS.TemporaryQueue tibcoTemporaryQueue
 		{
@@ -32,26 +32,35 @@ namespace Apache.NMS.EMS
 
 		#region IDestination Members
 
-		public Apache.NMS.DestinationType DestinationType
+		public new Apache.NMS.DestinationType DestinationType
 		{
 			get { return Apache.NMS.DestinationType.TemporaryQueue; }
 		}
 
-		public bool IsTopic
+		public new bool IsTopic
 		{
 			get { return false; }
 		}
 
-		public bool IsQueue
+		public new bool IsQueue
 		{
 			get { return true; }
 		}
 
-		public bool IsTemporary
+		public new bool IsTemporary
 		{
 			get { return true; }
 		}
 
 		#endregion
+
+		#region ITemporaryQueue Members
+
+		public void Delete()
+		{
+			this.tibcoTemporaryQueue.Delete();
+		}
+
+		#endregion
 	}
 }

Modified: activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/main/csharp/TemporaryTopic.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/main/csharp/TemporaryTopic.cs?rev=924559&r1=924558&r2=924559&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/main/csharp/TemporaryTopic.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/main/csharp/TemporaryTopic.cs Wed Mar
17 23:42:16 2010
@@ -17,7 +17,7 @@
 
 namespace Apache.NMS.EMS
 {
-	class TemporaryTopic : Apache.NMS.EMS.Destination, Apache.NMS.ITemporaryTopic
+	class TemporaryTopic : Apache.NMS.EMS.Topic, Apache.NMS.ITemporaryTopic
 	{
 		public TIBCO.EMS.TemporaryTopic tibcoTemporaryTopic
 		{
@@ -32,26 +32,35 @@ namespace Apache.NMS.EMS
 
 		#region IDestination Members
 
-		public Apache.NMS.DestinationType DestinationType
+		public new Apache.NMS.DestinationType DestinationType
 		{
 			get { return Apache.NMS.DestinationType.TemporaryTopic; }
 		}
 
-		public bool IsTopic
+		public new bool IsTopic
 		{
 			get { return true; }
 		}
 
-		public bool IsQueue
+		public new bool IsQueue
 		{
 			get { return false; }
 		}
 
-		public bool IsTemporary
+		public new bool IsTemporary
 		{
 			get { return true; }
 		}
 
 		#endregion
+
+		#region ITemporaryTopic Members
+
+		public void Delete()
+		{
+			this.tibcoTemporaryTopic.Delete();
+		}
+
+		#endregion
 	}
 }



Mime
View raw message