Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 6173 invoked from network); 27 May 2008 21:38:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 May 2008 21:38:40 -0000 Received: (qmail 9951 invoked by uid 500); 27 May 2008 21:38:42 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 9895 invoked by uid 500); 27 May 2008 21:38:41 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 9886 invoked by uid 99); 27 May 2008 21:38:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2008 14:38:41 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2008 21:37:54 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C8F9D23889F7; Tue, 27 May 2008 14:38:15 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r660725 - in /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp: Connection.cs Transport/Tcp/TcpTransport.cs Transport/TransportFilter.cs Date: Tue, 27 May 2008 21:38:15 -0000 To: commits@activemq.apache.org From: jgomes@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080527213815.C8F9D23889F7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jgomes Date: Tue May 27 14:38:15 2008 New Revision: 660725 URL: http://svn.apache.org/viewvc?rev=660725&view=rev Log: [AMQNET-86] Added IsStarted property to IStartable interface. Fixes [AMQNET-86]. (See https://issues.apache.org/activemq/browse/AMQNET-86) Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Tcp/TcpTransport.cs activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/TransportFilter.cs Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs?rev=660725&r1=660724&r2=660725&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs (original) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs Tue May 27 14:38:15 2008 @@ -63,11 +63,6 @@ public event ExceptionListener ExceptionListener; - public bool IsStarted - { - get { return started.Value; } - } - #region Properties /// @@ -108,6 +103,15 @@ } /// + /// This property determines if the asynchronous message delivery of incoming + /// messages has been started for this connection. + /// + public bool IsStarted + { + get { return started.Value; } + } + + /// /// Temporarily stop asynchronous delivery of inbound messages for this connection. /// The sending of outbound messages is unaffected. /// Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Tcp/TcpTransport.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Tcp/TcpTransport.cs?rev=660725&r1=660724&r2=660725&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Tcp/TcpTransport.cs (original) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Tcp/TcpTransport.cs Tue May 27 14:38:15 2008 @@ -85,6 +85,20 @@ } } } + + /// + /// Property IsStarted + /// + public bool IsStarted + { + get + { + lock(initLock) + { + return started; + } + } + } public void Oneway(Command command) { Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/TransportFilter.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/TransportFilter.cs?rev=660725&r1=660724&r2=660725&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/TransportFilter.cs (original) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/TransportFilter.cs Tue May 27 14:38:15 2008 @@ -85,7 +85,18 @@ throw new InvalidOperationException ("exception cannot be null when Start is called."); this.next.Start(); } - + + /// + /// Property IsStarted + /// + public bool IsStarted + { + get + { + return this.next.IsStarted; + } + } + /// /// Method Dispose ///