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/07/21 01:19:23 UTC

svn commit: r966051 - in /activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp: Connection.cs Session.cs

Author: tabish
Date: Tue Jul 20 23:19:22 2010
New Revision: 966051

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

Use new URISupport methods to preserve the options when non-destructive extraction is what we want.

Modified:
    activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Connection.cs
    activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Session.cs

Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Connection.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Connection.cs?rev=966051&r1=966050&r2=966051&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Connection.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Connection.cs Tue Jul 20 23:19:22 2010
@@ -339,7 +339,8 @@ namespace Apache.NMS.Stomp
 
             // Set properties on session using parameters prefixed with "session."
             StringDictionary options = URISupport.ParseQuery(this.brokerUri.Query);
-            URISupport.SetProperties(session, options, "session.");
+            options = URISupport.GetProperties(options, "session.");
+            URISupport.SetProperties(session, options);
 
             if(IsStarted)
             {

Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Session.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Session.cs?rev=966051&r1=966050&r2=966051&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Session.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Session.cs Tue Jul 20 23:19:22 2010
@@ -17,6 +17,7 @@
 
 using System;
 using System.Collections;
+using System.Collections.Specialized;
 using System.Threading;
 using Apache.NMS.Stomp.Commands;
 using Apache.NMS.Stomp.Util;
@@ -668,7 +669,8 @@ namespace Apache.NMS.Stomp
             Destination amqDestination = destination as Destination;
             if(amqDestination != null && amqDestination.Options != null)
             {
-                URISupport.SetProperties(answer, amqDestination.Options, "consumer.");
+                StringDictionary options = URISupport.GetProperties(amqDestination.Options, "consumer.");
+                URISupport.SetProperties(answer, options);
             }
 
             return answer;
@@ -689,7 +691,8 @@ namespace Apache.NMS.Stomp
             Destination amqDestination = destination as Destination;
             if(amqDestination != null && amqDestination.Options != null)
             {
-                URISupport.SetProperties(answer, amqDestination.Options, "producer.");
+                StringDictionary options = URISupport.GetProperties(amqDestination.Options, "producer.");
+                URISupport.SetProperties(answer, options);
             }
 
             return answer;