コード例 #1
0
        public void StopHistoricalReaderTest()
        {
            StartHistoricalReaderTest();

            bool expected = true;
            bool actual   = s_utilities.StopHistoricalReader();

            Assert.AreEqual(expected, actual, "StopHistoricalReader test failed");
        }
コード例 #2
0
        protected void Dispose(bool disposing)
        {
            if (m_bConnected)
            {
                m_bConnected = false;
                m_twsUtilities.StopHistoricalReader();
                m_twsUtilities.Dispose();

                if (m_quoteMap != null)
                {
                    TWSQuoteObject[] quoteObjects = m_quoteMap.Values.ToArray();
                    foreach (TWSQuoteObject quoteObject in quoteObjects)
                    {
                        m_quoteMap.Remove(quoteObject.RequestId);
                        quoteObject.Dispose();
                    }
                }
            }
        }