You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jg...@apache.org on 2009/05/22 00:36:57 UTC

svn commit: r777299 - in /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp: TestMain.cs TestMainAsync.cs

Author: jgomes
Date: Thu May 21 22:36:56 2009
New Revision: 777299

URL: http://svn.apache.org/viewvc?rev=777299&view=rev
Log:
Moved snippet markup comments to encompass entire demo code.

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/TestMain.cs
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/TestMainAsync.cs

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/TestMain.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/TestMain.cs?rev=777299&r1=777298&r2=777299&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/TestMain.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/TestMain.cs Thu May 21 22:36:56 2009
@@ -15,6 +15,7 @@
  * limitations under the License.
  */
 
+// START SNIPPET: demo
 using System;
 using Apache.NMS;
 using Apache.NMS.Util;
@@ -27,7 +28,6 @@
 		{
 			try
 			{
-				// START SNIPPET: demo
 				Uri connecturi = new Uri("activemq:tcp://activemqhost:61616");
 				
 				Console.WriteLine("About to connect to " + connecturi);
@@ -76,7 +76,6 @@
 						}
 					}
 				}
-				// END SNIPPET: demo
 			}
 			catch(Exception e)
 			{
@@ -86,3 +85,4 @@
 		}
 	}
 }
+// END SNIPPET: demo

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/TestMainAsync.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/TestMainAsync.cs?rev=777299&r1=777298&r2=777299&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/TestMainAsync.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/TestMainAsync.cs Thu May 21 22:36:56 2009
@@ -15,6 +15,7 @@
  * limitations under the License.
  */
 
+// START SNIPPET: demo
 using System;
 using System.Threading;
 using Apache.NMS;
@@ -32,7 +33,6 @@
 		{
 			try
 			{
-				// START SNIPPET: demo
 				Uri connecturi = new Uri("activemq:tcp://activemqhost:61616");
 				
 				Console.WriteLine("About to connect to " + connecturi);
@@ -84,7 +84,6 @@
 						}
 					}
 				}
-				// END SNIPPET: demo
 			}
 			catch(Exception e)
 			{
@@ -100,3 +99,4 @@
 		}
 	}
 }
+// END SNIPPET: demo