Ejemplo n.º 1
0
        public void GetHomeFolder(DirectoryBrowseMethod cb)
        {
            if (m_Remote != null)
            {
                if (Running && m_Thread != Thread.CurrentThread)
                {
                    BeginInvoke((ReplayRenderer r) => { cb(m_Remote.GetHomeFolder(), null); });
                    return;
                }

                cb(m_Remote.GetHomeFolder(), null);
            }
        }
Ejemplo n.º 2
0
        public void GetHomeFolder(DirectoryBrowseMethod cb)
        {
            if (m_Remote != null)
            {
                if (Running && m_Thread != Thread.CurrentThread)
                {
                    BeginInvoke((ReplayRenderer r) => { cb(m_Remote.GetHomeFolder(), null); });
                    return;
                }

                string home = "";

                // prevent pings while fetching remote FS data
                lock (m_Remote)
                {
                    home = m_Remote.GetHomeFolder();
                }

                cb(home, null);
            }
        }