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/01/11 22:46:07 UTC
svn commit: r898078 -
/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/ConnectionMetaData.cs
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.");
}