예제 #1
0
        private async void btnStop_Click(object sender, EventArgs e)
        {
            if (m_ServerNode != null && m_ServerNode.IsWorking())
            {
                await m_ServerNode.Stop();

                await Task.Delay(500);

                if (!m_ServerNode.IsWorking())
                {
                    CommonLog.Info("Server Stopped");
                }
            }
        }
예제 #2
0
        private async void btnStart_Click(object sender, EventArgs e)
        {
            if (m_ServerNode != null && !m_ServerNode.IsWorking())
            {
                await m_ServerNode.Start(m_InternalSetting, m_PublicSetting);

                await Task.Delay(500);

                if (m_ServerNode.IsWorking())
                {
                    CommonLog.Info("Server Started");
                    CommonLog.Info("Internal URL: " + m_ServerNode.GetInternalAccessUrl());
                    CommonLog.Info("Public URL: " + m_ServerNode.GetPublicAccessUrl());
                }
            }
        }