Beispiel #1
0
            public void Disconnect()
            {
                lock (m_table)
                    if (IsConnected)
                    {
                        if (m_cxnCount == 1)
                        {
                            m_table.Disconnect();
                        }

                        --m_cxnCount;
                    }

                ProvidersTracker.UnregisterProvider(this);
            }
Beispiel #2
0
        public void Connect()
        {
            using (Lock())
            {
                if (!IsConnected)
                {
                    m_src.Connect();
                    m_mapper.Connect();
                    RegisterHandlers();
                }

                ++m_refCount;

                ProvidersTracker.RegisterProvider(this, m_src);
            }
        }
Beispiel #3
0
            public void Connect()
            {
                lock (m_table)
                {
                    if (!IsConnected)
                    {
                        m_table.Connect();
                    }

                    ++m_cxnCount;
                }

                ProvidersTracker.RegisterProvider(this, m_table.ID);

                Assert(IsConnected);
            }