activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r627175 [2/2] - in /activemq/activemq-dotnet/Apache.NMS.EMS/trunk: ./ src/main/csharp/ src/test/csharp/
Date Tue, 12 Feb 2008 23:11:09 GMT
Modified: activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/main/csharp/TibcoUtil.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/main/csharp/TibcoUtil.cs?rev=627175&r1=627174&r2=627175&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/main/csharp/TibcoUtil.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/main/csharp/TibcoUtil.cs Tue Feb 12
15:11:07 2008
@@ -1,293 +1,285 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-using System;
-
-namespace Apache.NMS.EMS
-{
-	public class TibcoUtil
-	{
-		static TibcoUtil()
-		{
-			epochDiff = (javaEpoch.ToFileTimeUtc() - windowsEpoch.ToFileTimeUtc())
-							/ TimeSpan.TicksPerMillisecond;
-		}
-
-		public static Apache.NMS.IConnection ToNMSConnection(TIBCO.EMS.Connection tibcoConnection)
-		{
-			return (null != tibcoConnection
-			        		? new Apache.NMS.EMS.Connection(tibcoConnection)
-			        		: null);
-		}
-
-		public static Apache.NMS.ISession ToNMSSession(TIBCO.EMS.Session tibcoSession)
-		{
-			return (null != tibcoSession
-			        		? new Apache.NMS.EMS.Session(tibcoSession)
-			        		: null);
-		}
-
-		public static Apache.NMS.IMessageProducer ToNMSMessageProducer(Apache.NMS.EMS.Session session,
-					TIBCO.EMS.MessageProducer tibcoMessageProducer)
-		{
-			return (null != tibcoMessageProducer
-			        		? new Apache.NMS.EMS.MessageProducer(session, tibcoMessageProducer)
-			        		: null);
-		}
-
-		public static Apache.NMS.IMessageConsumer ToNMSMessageConsumer(Apache.NMS.EMS.Session session,
-					TIBCO.EMS.MessageConsumer tibcoMessageConsumer)
-		{
-			return (null != tibcoMessageConsumer
-			        		? new Apache.NMS.EMS.MessageConsumer(session, tibcoMessageConsumer)
-			        		: null);
-		}
-
-		public static Apache.NMS.IQueue ToNMSQueue(TIBCO.EMS.Queue tibcoQueue)
-		{
-			return (null != tibcoQueue
-			        		? new Apache.NMS.EMS.Queue(tibcoQueue)
-			        		: null);
-		}
-
-		public static Apache.NMS.ITopic ToNMSTopic(TIBCO.EMS.Topic tibcoTopic)
-		{
-			return (null != tibcoTopic
-			        		? new Apache.NMS.EMS.Topic(tibcoTopic)
-			        		: null);
-		}
-
-		public static Apache.NMS.ITemporaryQueue ToNMSTemporaryQueue(
-				TIBCO.EMS.TemporaryQueue tibcoTemporaryQueue)
-		{
-			return (null != tibcoTemporaryQueue
-			        		? new Apache.NMS.EMS.TemporaryQueue(tibcoTemporaryQueue)
-			        		: null);
-		}
-
-		public static Apache.NMS.ITemporaryTopic ToNMSTemporaryTopic(
-				TIBCO.EMS.TemporaryTopic tibcoTemporaryTopic)
-		{
-			return (null != tibcoTemporaryTopic
-			        		? new Apache.NMS.EMS.TemporaryTopic(tibcoTemporaryTopic)
-			        		: null);
-		}
-
-		public static Apache.NMS.IDestination ToNMSDestination(TIBCO.EMS.Destination tibcoDestination)
-		{
-			if(tibcoDestination is TIBCO.EMS.Queue)
-			{
-				return ToNMSQueue((TIBCO.EMS.Queue) tibcoDestination);
-			}
-
-			if(tibcoDestination is TIBCO.EMS.Topic)
-			{
-				return ToNMSTopic((TIBCO.EMS.Topic) tibcoDestination);
-			}
-
-			if(tibcoDestination is TIBCO.EMS.TemporaryQueue)
-			{
-				return ToNMSTemporaryQueue((TIBCO.EMS.TemporaryQueue) tibcoDestination);
-			}
-
-			if(tibcoDestination is TIBCO.EMS.TemporaryTopic)
-			{
-				return ToNMSTemporaryTopic((TIBCO.EMS.TemporaryTopic) tibcoDestination);
-			}
-
-			return null;
-		}
-
-		public static Apache.NMS.IMessage ToNMSMessage(TIBCO.EMS.Message tibcoMessage)
-		{
-			if(tibcoMessage is TIBCO.EMS.TextMessage)
-			{
-				return ToNMSTextMessage(tibcoMessage as TIBCO.EMS.TextMessage);
-			}
-
-			if(tibcoMessage is TIBCO.EMS.BytesMessage)
-			{
-				return ToNMSBytesMessage(tibcoMessage as TIBCO.EMS.BytesMessage);
-			}
-
-			if(tibcoMessage is TIBCO.EMS.MapMessage)
-			{
-				return ToNMSMapMessage(tibcoMessage as TIBCO.EMS.MapMessage);
-			}
-
-			if(tibcoMessage is TIBCO.EMS.ObjectMessage)
-			{
-				return ToNMSObjectMessage(tibcoMessage as TIBCO.EMS.ObjectMessage);
-			}
-
-			return (null != tibcoMessage
-			        		? new Apache.NMS.EMS.Message(tibcoMessage)
-			        		: null);
-		}
-
-		public static Apache.NMS.ITextMessage ToNMSTextMessage(TIBCO.EMS.TextMessage tibcoTextMessage)
-		{
-			return (null != tibcoTextMessage
-			        		? new Apache.NMS.EMS.TextMessage(tibcoTextMessage)
-			        		: null);
-		}
-
-		public static Apache.NMS.IBytesMessage ToNMSBytesMessage(
-				TIBCO.EMS.BytesMessage tibcoBytesMessage)
-		{
-			return (null != tibcoBytesMessage
-			        		? new Apache.NMS.EMS.BytesMessage(tibcoBytesMessage)
-			        		: null);
-		}
-
-		public static Apache.NMS.IMapMessage ToNMSMapMessage(TIBCO.EMS.MapMessage tibcoMapMessage)
-		{
-			return (null != tibcoMapMessage
-			        		? new Apache.NMS.EMS.MapMessage(tibcoMapMessage)
-			        		: null);
-		}
-
-		public static Apache.NMS.IObjectMessage ToNMSObjectMessage(
-				TIBCO.EMS.ObjectMessage tibcoObjectMessage)
-		{
-			return (null != tibcoObjectMessage
-			        		? new Apache.NMS.EMS.ObjectMessage(tibcoObjectMessage)
-			        		: null);
-		}
-
-		public static TIBCO.EMS.SessionMode ToSessionMode(Apache.NMS.AcknowledgementMode acknowledge)
-		{
-			TIBCO.EMS.SessionMode sessionMode = TIBCO.EMS.SessionMode.NoAcknowledge;
-
-			switch(acknowledge)
-			{
-			case Apache.NMS.AcknowledgementMode.AutoAcknowledge:
-				sessionMode = TIBCO.EMS.SessionMode.AutoAcknowledge;
-				break;
-
-			case Apache.NMS.AcknowledgementMode.AutoClientAcknowledge:
-				sessionMode = TIBCO.EMS.SessionMode.ClientAcknowledge;
-				break;
-
-			case Apache.NMS.AcknowledgementMode.ClientAcknowledge:
-				sessionMode = TIBCO.EMS.SessionMode.ExplicitClientAcknowledge;
-				break;
-
-			case Apache.NMS.AcknowledgementMode.DupsOkAcknowledge:
-				sessionMode = TIBCO.EMS.SessionMode.DupsOkAcknowledge;
-				break;
-
-			case Apache.NMS.AcknowledgementMode.Transactional:
-				sessionMode = TIBCO.EMS.SessionMode.SessionTransacted;
-				break;
-			}
-
-			return sessionMode;
-		}
-
-		public static Apache.NMS.AcknowledgementMode ToAcknowledgementMode(
-				TIBCO.EMS.SessionMode sessionMode)
-		{
-			Apache.NMS.AcknowledgementMode acknowledge = Apache.NMS.AcknowledgementMode.AutoAcknowledge;
-
-			switch(sessionMode)
-			{
-			case TIBCO.EMS.SessionMode.AutoAcknowledge:
-				acknowledge = Apache.NMS.AcknowledgementMode.AutoAcknowledge;
-				break;
-
-			case TIBCO.EMS.SessionMode.ClientAcknowledge:
-				acknowledge = Apache.NMS.AcknowledgementMode.AutoClientAcknowledge;
-				break;
-
-			case TIBCO.EMS.SessionMode.ExplicitClientAcknowledge:
-				acknowledge = Apache.NMS.AcknowledgementMode.ClientAcknowledge;
-				break;
-
-			case TIBCO.EMS.SessionMode.DupsOkAcknowledge:
-				acknowledge = Apache.NMS.AcknowledgementMode.DupsOkAcknowledge;
-				break;
-
-			case TIBCO.EMS.SessionMode.SessionTransacted:
-				acknowledge = Apache.NMS.AcknowledgementMode.Transactional;
-				break;
-			}
-
-			return acknowledge;
-		}
-
-		public static Apache.NMS.IPrimitiveMap ToMessageProperties(TIBCO.EMS.Message tibcoMessage)
-		{
-			return (null != tibcoMessage
-			        		? new Apache.NMS.EMS.MessageProperties(tibcoMessage)
-			        		: null);
-		}
-
-		public static TIBCO.EMS.MessageDeliveryMode ToMessageDeliveryMode(bool persistent)
-		{
-			return (persistent
-						? TIBCO.EMS.MessageDeliveryMode.Persistent
-						: TIBCO.EMS.MessageDeliveryMode.NonPersistent);
-		}
-
-		public static bool ToPersistent(TIBCO.EMS.MessageDeliveryMode deliveryMode)
-		{
-			return (TIBCO.EMS.MessageDeliveryMode.NonPersistent != deliveryMode);
-		}
-
-		#region DateUtils
-		// This secton of utility functions was taken from the ActiveMQ.DateUtils class.
-		// These functions should be merged into a common code area that can be shared
-		// between all provider implementations.
-		
-		/// <summary>
-		/// The start of the Windows epoch
-		/// </summary>
-		public static readonly DateTime windowsEpoch = new DateTime(1601, 1, 1, 0, 0, 0, 0);
-		/// <summary>
-		/// The start of the Java epoch
-		/// </summary>
-		public static readonly DateTime javaEpoch = new DateTime(1970, 1, 1, 0, 0, 0, 0);
-
-		/// <summary>
-		/// The difference between the Windows epoch and the Java epoch
-		/// in milliseconds.
-		/// </summary>
-		public static readonly long epochDiff; /* = 1164447360000L; */
-
-		public static long ToJavaTime(DateTime dateTime)
-		{
-			return (dateTime.ToFileTime() / TimeSpan.TicksPerMillisecond) - epochDiff;
-		}
-
-		public static DateTime ToDateTime(long javaTime)
-		{
-			return DateTime.FromFileTime((javaTime + epochDiff) * TimeSpan.TicksPerMillisecond);
-		}
-
-		public static long ToJavaTimeUtc(DateTime dateTime)
-		{
-			return (dateTime.ToFileTimeUtc() / TimeSpan.TicksPerMillisecond) - epochDiff;
-		}
-
-		public static DateTime ToDateTimeUtc(long javaTime)
-		{
-			return DateTime.FromFileTimeUtc((javaTime + epochDiff) * TimeSpan.TicksPerMillisecond);
-		}
-		#endregion
-
-	}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+using System;
+
+namespace Apache.NMS.EMS
+{
+	public class TibcoUtil
+	{
+		static TibcoUtil()
+		{
+			epochDiff = (javaEpoch.ToFileTimeUtc() - windowsEpoch.ToFileTimeUtc())
+							/ TimeSpan.TicksPerMillisecond;
+		}
+
+		public static Apache.NMS.IConnection ToNMSConnection(TIBCO.EMS.Connection tibcoConnection)
+		{
+			return (null != tibcoConnection
+			        		? new Apache.NMS.EMS.Connection(tibcoConnection)
+			        		: null);
+		}
+
+		public static Apache.NMS.ISession ToNMSSession(TIBCO.EMS.Session tibcoSession)
+		{
+			return (null != tibcoSession
+			        		? new Apache.NMS.EMS.Session(tibcoSession)
+			        		: null);
+		}
+
+		public static Apache.NMS.IMessageProducer ToNMSMessageProducer(Apache.NMS.EMS.Session session,
+					TIBCO.EMS.MessageProducer tibcoMessageProducer)
+		{
+			return (null != tibcoMessageProducer
+			        		? new Apache.NMS.EMS.MessageProducer(session, tibcoMessageProducer)
+			        		: null);
+		}
+
+		public static Apache.NMS.IMessageConsumer ToNMSMessageConsumer(Apache.NMS.EMS.Session session,
+					TIBCO.EMS.MessageConsumer tibcoMessageConsumer)
+		{
+			return (null != tibcoMessageConsumer
+			        		? new Apache.NMS.EMS.MessageConsumer(session, tibcoMessageConsumer)
+			        		: null);
+		}
+
+		public static Apache.NMS.IQueue ToNMSQueue(TIBCO.EMS.Queue tibcoQueue)
+		{
+			return (null != tibcoQueue
+			        		? new Apache.NMS.EMS.Queue(tibcoQueue)
+			        		: null);
+		}
+
+		public static Apache.NMS.ITopic ToNMSTopic(TIBCO.EMS.Topic tibcoTopic)
+		{
+			return (null != tibcoTopic
+			        		? new Apache.NMS.EMS.Topic(tibcoTopic)
+			        		: null);
+		}
+
+		public static Apache.NMS.ITemporaryQueue ToNMSTemporaryQueue(
+				TIBCO.EMS.TemporaryQueue tibcoTemporaryQueue)
+		{
+			return (null != tibcoTemporaryQueue
+			        		? new Apache.NMS.EMS.TemporaryQueue(tibcoTemporaryQueue)
+			        		: null);
+		}
+
+		public static Apache.NMS.ITemporaryTopic ToNMSTemporaryTopic(
+				TIBCO.EMS.TemporaryTopic tibcoTemporaryTopic)
+		{
+			return (null != tibcoTemporaryTopic
+			        		? new Apache.NMS.EMS.TemporaryTopic(tibcoTemporaryTopic)
+			        		: null);
+		}
+
+		public static Apache.NMS.IDestination ToNMSDestination(TIBCO.EMS.Destination tibcoDestination)
+		{
+			if(tibcoDestination is TIBCO.EMS.Queue)
+			{
+				return ToNMSQueue((TIBCO.EMS.Queue) tibcoDestination);
+			}
+
+			if(tibcoDestination is TIBCO.EMS.Topic)
+			{
+				return ToNMSTopic((TIBCO.EMS.Topic) tibcoDestination);
+			}
+
+			if(tibcoDestination is TIBCO.EMS.TemporaryQueue)
+			{
+				return ToNMSTemporaryQueue((TIBCO.EMS.TemporaryQueue) tibcoDestination);
+			}
+
+			if(tibcoDestination is TIBCO.EMS.TemporaryTopic)
+			{
+				return ToNMSTemporaryTopic((TIBCO.EMS.TemporaryTopic) tibcoDestination);
+			}
+
+			return null;
+		}
+
+		public static Apache.NMS.IMessage ToNMSMessage(TIBCO.EMS.Message tibcoMessage)
+		{
+			if(tibcoMessage is TIBCO.EMS.TextMessage)
+			{
+				return ToNMSTextMessage(tibcoMessage as TIBCO.EMS.TextMessage);
+			}
+
+			if(tibcoMessage is TIBCO.EMS.BytesMessage)
+			{
+				return ToNMSBytesMessage(tibcoMessage as TIBCO.EMS.BytesMessage);
+			}
+
+			if(tibcoMessage is TIBCO.EMS.MapMessage)
+			{
+				return ToNMSMapMessage(tibcoMessage as TIBCO.EMS.MapMessage);
+			}
+
+			if(tibcoMessage is TIBCO.EMS.ObjectMessage)
+			{
+				return ToNMSObjectMessage(tibcoMessage as TIBCO.EMS.ObjectMessage);
+			}
+
+			return (null != tibcoMessage
+			        		? new Apache.NMS.EMS.Message(tibcoMessage)
+			        		: null);
+		}
+
+		public static Apache.NMS.ITextMessage ToNMSTextMessage(TIBCO.EMS.TextMessage tibcoTextMessage)
+		{
+			return (null != tibcoTextMessage
+			        		? new Apache.NMS.EMS.TextMessage(tibcoTextMessage)
+			        		: null);
+		}
+
+		public static Apache.NMS.IBytesMessage ToNMSBytesMessage(
+				TIBCO.EMS.BytesMessage tibcoBytesMessage)
+		{
+			return (null != tibcoBytesMessage
+			        		? new Apache.NMS.EMS.BytesMessage(tibcoBytesMessage)
+			        		: null);
+		}
+
+		public static Apache.NMS.IMapMessage ToNMSMapMessage(TIBCO.EMS.MapMessage tibcoMapMessage)
+		{
+			return (null != tibcoMapMessage
+			        		? new Apache.NMS.EMS.MapMessage(tibcoMapMessage)
+			        		: null);
+		}
+
+		public static Apache.NMS.IObjectMessage ToNMSObjectMessage(
+				TIBCO.EMS.ObjectMessage tibcoObjectMessage)
+		{
+			return (null != tibcoObjectMessage
+			        		? new Apache.NMS.EMS.ObjectMessage(tibcoObjectMessage)
+			        		: null);
+		}
+
+		public static TIBCO.EMS.SessionMode ToSessionMode(Apache.NMS.AcknowledgementMode acknowledge)
+		{
+			TIBCO.EMS.SessionMode sessionMode = TIBCO.EMS.SessionMode.NoAcknowledge;
+
+			switch(acknowledge)
+			{
+			case Apache.NMS.AcknowledgementMode.AutoAcknowledge:
+				sessionMode = TIBCO.EMS.SessionMode.AutoAcknowledge;
+				break;
+
+			case Apache.NMS.AcknowledgementMode.ClientAcknowledge:
+				sessionMode = TIBCO.EMS.SessionMode.ClientAcknowledge;
+				break;
+
+			case Apache.NMS.AcknowledgementMode.DupsOkAcknowledge:
+				sessionMode = TIBCO.EMS.SessionMode.DupsOkAcknowledge;
+				break;
+
+			case Apache.NMS.AcknowledgementMode.Transactional:
+				sessionMode = TIBCO.EMS.SessionMode.SessionTransacted;
+				break;
+			}
+
+			return sessionMode;
+		}
+
+		public static Apache.NMS.AcknowledgementMode ToAcknowledgementMode(
+				TIBCO.EMS.SessionMode sessionMode)
+		{
+			Apache.NMS.AcknowledgementMode acknowledge = Apache.NMS.AcknowledgementMode.AutoAcknowledge;
+
+			switch(sessionMode)
+			{
+			case TIBCO.EMS.SessionMode.AutoAcknowledge:
+				acknowledge = Apache.NMS.AcknowledgementMode.AutoAcknowledge;
+				break;
+
+			case TIBCO.EMS.SessionMode.ClientAcknowledge:
+				acknowledge = Apache.NMS.AcknowledgementMode.ClientAcknowledge;
+				break;
+
+			case TIBCO.EMS.SessionMode.DupsOkAcknowledge:
+				acknowledge = Apache.NMS.AcknowledgementMode.DupsOkAcknowledge;
+				break;
+
+			case TIBCO.EMS.SessionMode.SessionTransacted:
+				acknowledge = Apache.NMS.AcknowledgementMode.Transactional;
+				break;
+			}
+
+			return acknowledge;
+		}
+
+		public static Apache.NMS.IPrimitiveMap ToMessageProperties(TIBCO.EMS.Message tibcoMessage)
+		{
+			return (null != tibcoMessage
+			        		? new Apache.NMS.EMS.MessageProperties(tibcoMessage)
+			        		: null);
+		}
+
+		public static TIBCO.EMS.MessageDeliveryMode ToMessageDeliveryMode(bool persistent)
+		{
+			return (persistent
+						? TIBCO.EMS.MessageDeliveryMode.Persistent
+						: TIBCO.EMS.MessageDeliveryMode.NonPersistent);
+		}
+
+		public static bool ToPersistent(TIBCO.EMS.MessageDeliveryMode deliveryMode)
+		{
+			return (TIBCO.EMS.MessageDeliveryMode.NonPersistent != deliveryMode);
+		}
+
+		#region DateUtils
+		// This secton of utility functions was taken from the ActiveMQ.DateUtils class.
+		// These functions should be merged into a common code area that can be shared
+		// between all provider implementations.
+		
+		/// <summary>
+		/// The start of the Windows epoch
+		/// </summary>
+		public static readonly DateTime windowsEpoch = new DateTime(1601, 1, 1, 0, 0, 0, 0);
+		/// <summary>
+		/// The start of the Java epoch
+		/// </summary>
+		public static readonly DateTime javaEpoch = new DateTime(1970, 1, 1, 0, 0, 0, 0);
+
+		/// <summary>
+		/// The difference between the Windows epoch and the Java epoch
+		/// in milliseconds.
+		/// </summary>
+		public static readonly long epochDiff; /* = 1164447360000L; */
+
+		public static long ToJavaTime(DateTime dateTime)
+		{
+			return (dateTime.ToFileTime() / TimeSpan.TicksPerMillisecond) - epochDiff;
+		}
+
+		public static DateTime ToDateTime(long javaTime)
+		{
+			return DateTime.FromFileTime((javaTime + epochDiff) * TimeSpan.TicksPerMillisecond);
+		}
+
+		public static long ToJavaTimeUtc(DateTime dateTime)
+		{
+			return (dateTime.ToFileTimeUtc() / TimeSpan.TicksPerMillisecond) - epochDiff;
+		}
+
+		public static DateTime ToDateTimeUtc(long javaTime)
+		{
+			return DateTime.FromFileTimeUtc((javaTime + epochDiff) * TimeSpan.TicksPerMillisecond);
+		}
+		#endregion
+
+	}
 }

Modified: activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/test/csharp/CommonAssemblyInfo.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/test/csharp/CommonAssemblyInfo.cs?rev=627175&r1=627174&r2=627175&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/test/csharp/CommonAssemblyInfo.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/test/csharp/CommonAssemblyInfo.cs Tue
Feb 12 15:11:07 2008
@@ -1,28 +1,28 @@
-using System;
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-//------------------------------------------------------------------------------
-// <auto-generated>
-//     This code was generated by a tool.
-//     Runtime Version:2.0.50727.832
-//
-//     Changes to this file may cause incorrect behavior and will be lost if
-//     the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-[assembly: ComVisibleAttribute(false)]
-[assembly: CLSCompliantAttribute(false)]
-[assembly: AssemblyTitleAttribute("Apache NMS for EMS Class Library")]
-[assembly: AssemblyDescriptionAttribute("Apache NMS for EMS Class Library (.Net Messaging
Library Implementation): An impl" +
-    "ementation of the NMS API for EMS")]
-[assembly: AssemblyConfigurationAttribute("SNAPSHOT")]
-[assembly: AssemblyCompanyAttribute("http://activemq.apache.org/nms")]
-[assembly: AssemblyProductAttribute("Apache NMS for EMS Class Library")]
-[assembly: AssemblyCopyrightAttribute("Copyright (C) 2005-2007 Apache Software Foundation")]
-[assembly: AssemblyTrademarkAttribute("")]
-[assembly: AssemblyCultureAttribute("")]
-[assembly: AssemblyVersionAttribute("1.0")]
-[assembly: AssemblyInformationalVersionAttribute("1.0")]
-
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:2.0.50727.1378
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+[assembly: ComVisibleAttribute(false)]
+[assembly: CLSCompliantAttribute(false)]
+[assembly: AssemblyTitleAttribute("Apache NMS for EMS Class Library")]
+[assembly: AssemblyDescriptionAttribute("Apache NMS for EMS Class Library (.Net Messaging
Library Implementation): An impl" +
+    "ementation of the NMS API for EMS")]
+[assembly: AssemblyConfigurationAttribute("SNAPSHOT")]
+[assembly: AssemblyCompanyAttribute("http://activemq.apache.org/nms")]
+[assembly: AssemblyProductAttribute("Apache NMS for EMS Class Library")]
+[assembly: AssemblyCopyrightAttribute("Copyright (C) 2005-2008 Apache Software Foundation")]
+[assembly: AssemblyTrademarkAttribute("")]
+[assembly: AssemblyCultureAttribute("")]
+[assembly: AssemblyVersionAttribute("1.0")]
+[assembly: AssemblyInformationalVersionAttribute("1.0")]
+

Modified: activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/test/csharp/NMSConnectionFactoryTest.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/test/csharp/NMSConnectionFactoryTest.cs?rev=627175&r1=627174&r2=627175&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/test/csharp/NMSConnectionFactoryTest.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/test/csharp/NMSConnectionFactoryTest.cs
Tue Feb 12 15:11:07 2008
@@ -1,41 +1,41 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-using System;
-using Apache.NMS;
-using NUnit.Framework;
-using System.Reflection;
-using System.IO;
-
-namespace Apache.NMS.ActiveMQ
-{
-    [TestFixture]
-    public class NMSConnectionFactoryTest 
-    {
-        [Test]
-        public void TestEmsURI()
-        {
-            NMSConnectionFactory factory = new NMSConnectionFactory("ems:tcp://localhost:61616");
-            Assert.IsNotNull(factory);
-            Assert.IsNotNull(factory.ConnectionFactory);
-            Assert.IsTrue(factory.ConnectionFactory is Apache.NMS.EMS.ConnectionFactory);
-        }
-
-    }
-
-
-}
-
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+using System;
+using Apache.NMS;
+using NUnit.Framework;
+using System.Reflection;
+using System.IO;
+
+namespace Apache.NMS.ActiveMQ
+{
+    [TestFixture]
+    public class NMSConnectionFactoryTest 
+    {
+        [Test]
+        public void TestEmsURI()
+        {
+            NMSConnectionFactory factory = new NMSConnectionFactory("ems:tcp://localhost:7222");
+            Assert.IsNotNull(factory);
+            Assert.IsNotNull(factory.ConnectionFactory);
+            Assert.IsTrue(factory.ConnectionFactory is Apache.NMS.EMS.ConnectionFactory);
+        }
+
+    }
+
+
+}
+

Modified: activemq/activemq-dotnet/Apache.NMS.EMS/trunk/vs2005-ems.csproj
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.EMS/trunk/vs2005-ems.csproj?rev=627175&r1=627174&r2=627175&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.EMS/trunk/vs2005-ems.csproj (original)
+++ activemq/activemq-dotnet/Apache.NMS.EMS/trunk/vs2005-ems.csproj Tue Feb 12 15:11:07 2008
@@ -1,79 +1,81 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <PropertyGroup>
-    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
-    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
-    <ProductVersion>8.0.50727</ProductVersion>
-    <SchemaVersion>2.0</SchemaVersion>
-    <ProjectGuid>{2AF5EBB5-9873-4B35-A8FC-8B6E74242767}</ProjectGuid>
-    <OutputType>Library</OutputType>
-    <RootNamespace>Apache.NMS.EMS</RootNamespace>
-    <AssemblyName>Apache.NMS.EMS</AssemblyName>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <DebugSymbols>true</DebugSymbols>
-    <DebugType>full</DebugType>
-    <Optimize>false</Optimize>
-    <OutputPath>build\net-2.0\debug\</OutputPath>
-    <DefineConstants>DEBUG;TRACE</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-    <DebugType>none</DebugType>
-    <Optimize>true</Optimize>
-    <OutputPath>build\net-2.0\release\</OutputPath>
-    <DefineConstants>TRACE</DefineConstants>
-    <ErrorReport>none</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <ItemGroup>
-    <Reference Include="System" />
-    <Reference Include="System.Data" />
-    <Reference Include="System.Xml" />
-    <Reference Include="TIBCO.EMS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5b83db8ff05c64ba">
-      <SpecificVersion>False</SpecificVersion>
-      <HintPath>lib\TIBCO.EMS.dll</HintPath>
-    </Reference>
-  </ItemGroup>
-  <ItemGroup>
-    <Compile Include="src\main\csharp\BytesMessage.cs" />
-    <Compile Include="src\main\csharp\CommonAssemblyInfo.cs" />
-    <Compile Include="src\main\csharp\Connection.cs" />
-    <Compile Include="src\main\csharp\ConnectionFactory.cs" />
-    <Compile Include="src\main\csharp\Destination.cs" />
-    <Compile Include="src\main\csharp\Dispatcher.cs" />
-    <Compile Include="src\main\csharp\MapMessage.cs" />
-    <Compile Include="src\main\csharp\Message.cs" />
-    <Compile Include="src\main\csharp\MessageConsumer.cs" />
-    <Compile Include="src\main\csharp\MessageProducer.cs" />
-    <Compile Include="src\main\csharp\MessageProperties.cs" />
-    <Compile Include="src\main\csharp\ObjectMessage.cs" />
-    <Compile Include="src\main\csharp\Queue.cs" />
-    <Compile Include="src\main\csharp\Session.cs" />
-    <Compile Include="src\main\csharp\TemporaryQueue.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="src\main\csharp\TemporaryTopic.cs" />
-    <Compile Include="src\main\csharp\TextMessage.cs" />
-    <Compile Include="src\main\csharp\TibcoUtil.cs" />
-    <Compile Include="src\main\csharp\Topic.cs" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="activemq-dotnet.snk" />
-    <EmbeddedResource Include="Apache.NMS.NMSConnectionFactory.ems" />
-  </ItemGroup>
-  <ItemGroup>
-    <ProjectReference Include="vendor\Apache.NMS\vs2005-nms.csproj">
-      <Project>{300C1716-0674-4D01-8F5D-151E59A504FE}</Project>
-      <Name>vs2005-nms</Name>
-    </ProjectReference>
-  </ItemGroup>
-  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
-  <!-- To modify your build process, add your task inside one of the targets below and
uncomment it. 
-       Other similar extension points exist, see Microsoft.Common.targets.
-  <Target Name="BeforeBuild">
-  </Target>
-  <Target Name="AfterBuild">
-  </Target>
-  -->
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>8.0.50727</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{2AF5EBB5-9873-4B35-A8FC-8B6E74242767}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <RootNamespace>Apache.NMS.EMS</RootNamespace>
+    <AssemblyName>Apache.NMS.EMS</AssemblyName>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>build\net-2.0\debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>none</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>build\net-2.0\release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>none</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Xml" />
+    <Reference Include="TIBCO.EMS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5b83db8ff05c64ba">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>lib\TIBCO.EMS.dll</HintPath>
+    </Reference>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="src\main\csharp\BytesMessage.cs" />
+    <Compile Include="src\main\csharp\CommonAssemblyInfo.cs" />
+    <Compile Include="src\main\csharp\Connection.cs" />
+    <Compile Include="src\main\csharp\ConnectionFactory.cs" />
+    <Compile Include="src\main\csharp\Destination.cs" />
+    <Compile Include="src\main\csharp\Dispatcher.cs" />
+    <Compile Include="src\main\csharp\MapMessage.cs" />
+    <Compile Include="src\main\csharp\Message.cs" />
+    <Compile Include="src\main\csharp\MessageConsumer.cs" />
+    <Compile Include="src\main\csharp\MessageProducer.cs" />
+    <Compile Include="src\main\csharp\MessageProperties.cs" />
+    <Compile Include="src\main\csharp\ObjectMessage.cs" />
+    <Compile Include="src\main\csharp\Queue.cs" />
+    <Compile Include="src\main\csharp\Session.cs" />
+    <Compile Include="src\main\csharp\TemporaryQueue.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="src\main\csharp\TemporaryTopic.cs" />
+    <Compile Include="src\main\csharp\TextMessage.cs" />
+    <Compile Include="src\main\csharp\TibcoUtil.cs" />
+    <Compile Include="src\main\csharp\Topic.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="activemq-dotnet.snk" />
+    <None Include="nmsprovider-ems.config">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </None>
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="vendor\Apache.NMS\vs2005-nms.csproj">
+      <Project>{300C1716-0674-4D01-8F5D-151E59A504FE}</Project>
+      <Name>vs2005-nms</Name>
+    </ProjectReference>
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and
uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
 </Project>



Mime
View raw message