activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r898078 - /activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/ConnectionMetaData.cs
Date Mon, 11 Jan 2010 21:46:07 GMT
Author: tabish
Date: Mon Jan 11 21:46:06 2010
New Revision: 898078

URL: http://svn.apache.org/viewvc?rev=898078&view=rev
Log:
port code to build on .NET CF 2.0 and above

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

Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/ConnectionMetaData.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/ConnectionMetaData.cs?rev=898078&r1=898077&r2=898078&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/ConnectionMetaData.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/ConnectionMetaData.cs
Mon Jan 11 21:46:06 2010
@@ -51,6 +51,13 @@
             this.nmsxProperties =
                 new String[]{ "NMSXGroupID", "NMSXGroupSeq", "NMSXDeliveryCount", "NMSXProducerTXID"
};
 
+#if NETCF
+            this.nmsMajorVersion = 0;
+            this.nmsMinorVersion = 0;
+            this.nmsVersion = "Unknown";
+
+            return;
+#else
             foreach(AssemblyName name in self.GetReferencedAssemblies())
             {
                 if(0 == string.Compare(name.Name, "Apache.NMS", true))
@@ -62,6 +69,7 @@
                     return;
                 }
             }
+#endif
 
             throw new NMSException("Could not find a reference to the Apache.NMS Assembly.");
         }



Mime
View raw message