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 2009/12/10 17:08:12 UTC

svn commit: r889308 - /activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompFrame.cs

Author: tabish
Date: Thu Dec 10 16:08:11 2009
New Revision: 889308

URL: http://svn.apache.org/viewvc?rev=889308&view=rev
Log:
Fix setting the Frame command on read.

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

Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompFrame.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompFrame.cs?rev=889308&r1=889307&r2=889308&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompFrame.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompFrame.cs Thu Dec 10 16:08:11 2009
@@ -34,7 +34,7 @@
         /// Used to mark the End of the Frame.
         public const byte FRAME_TERMINUS = (byte) 0;
         
-        private string commoand;
+        private string command;
         private IDictionary properties = new Hashtable();
         private byte[] content;
 
@@ -46,7 +46,7 @@
 
         public StompFrame(string command)
         {
-            this.commoand = command;
+            this.command = command;
         }
         
         public byte[] Content
@@ -57,8 +57,8 @@
 
         public string Command
         {
-            get { return this.commoand; }
-            set { this.commoand = value; }
+            get { return this.command; }
+            set { this.command = value; }
         }
 
         public IDictionary Properties
@@ -150,14 +150,13 @@
 
         private void ReadCommandHeader(BinaryReader dataIn)
         {
-            string command;
             do 
             {
                 Tracer.Debug("Attempting to read in new Command");
-                command = ReadLine(dataIn);
+                this.command = ReadLine(dataIn);
             }
-            while(command == "");            
-            Tracer.Debug("Read new Command: " + command);
+            while(this.command == "");            
+            Tracer.Debug("Read new Command: " + this.command);
         }
 
         private void ReadHeaders(BinaryReader dataIn)