activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r805804 - in /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport: Mock/MockTransportFactory.cs TransportFactory.cs
Date Wed, 19 Aug 2009 13:40:32 GMT
Author: tabish
Date: Wed Aug 19 13:40:32 2009
New Revision: 805804

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

Implementation of Basic Mock Transport now wired into the NMS.ActiveMQ client code.

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Mock/MockTransportFactory.cs
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/TransportFactory.cs

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Mock/MockTransportFactory.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Mock/MockTransportFactory.cs?rev=805804&r1=805803&r2=805804&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Mock/MockTransportFactory.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Mock/MockTransportFactory.cs
Wed Aug 19 13:40:32 2009
@@ -27,7 +27,7 @@
 	/// <summary>
 	/// Factory class to create the MockTransport when given on a URI as mock://XXX
 	/// </summary>
-	public class MockTransportFactory
+	public class MockTransportFactory : ITransportFactory
 	{		
 		public MockTransportFactory()
 		{

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/TransportFactory.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/TransportFactory.cs?rev=805804&r1=805803&r2=805804&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/TransportFactory.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/TransportFactory.cs
Wed Aug 19 13:40:32 2009
@@ -21,6 +21,7 @@
 using Apache.NMS.ActiveMQ.Transport.Discovery;
 using Apache.NMS.ActiveMQ.Transport.Failover;
 using Apache.NMS.ActiveMQ.Transport.Tcp;
+using Apache.NMS.ActiveMQ.Transport.Mock;
 
 namespace Apache.NMS.ActiveMQ.Transport
 {
@@ -83,7 +84,10 @@
 					case "failover":
 						factory = new FailoverTransportFactory();
 						break;
-					default:
+					case "mock":
+						factory = new MockTransportFactory();
+						break;
+				    default:
 						throw new NMSConnectionException(String.Format("The transport {0} is not supported.",
scheme));
 				}
 			}



Mime
View raw message