public override IEnumerator RunTest()
        {
            TopicClient client = new TopicClient();

            m_Explorer = new SelfExplorer(client);

            if (client.IsActive)
            {
                client.Disconnect();
                while (client.IsActive)
                {
                    yield return(null);
                }
            }

            client.Connect();

            m_Explorer.OnNodeAdded    += OnNodeAdded;
            m_Explorer.OnNodeRemoved  += OnNodeRemoved;
            m_Explorer.OnNodeReady    += OnNodeReady;
            m_Explorer.OnExplorerDone += OnExploreDone;

            m_Explorer.Explore();
            while (!m_bExplorerTested)
            {
                yield return(null);
            }

            yield break;
        }
예제 #2
0
 private void OnExploreDone(SelfExplorer a_Explorer)
 {
     Log.Debug("TestSelfExplorer", "OnExploreDone: {0}", a_Explorer);
     //m_bExplorerTested = true;
 }