public async Task <List <WordAnalysis> > ProcessData() { if (m_state != eServerState.Completed) { FillDataWithLetters(); m_state = eServerState.Running; stopwatch = Stopwatch.StartNew(); wordAnalyses = await ProcessFile(); stopwatch.Stop(); m_state = eServerState.Completed; } return(wordAnalyses); }
/// <summary> /// 报告服务器状态到监控节点 /// </summary> /// <param name="serverName"></param> /// <param name="state"></param> public void ReportServerState2MoniteorNode(string serverName, eServerState state) { //ByteArray sendData = com.tieao.mmo.interval.server.MoniteorServerDataProtocolServerHelper.ReportServerState(serverName, Convert.ToInt32(state)); //Network.NetworkManager.Instance.SendMessageToServer(eServerType.MONITEORNODE, sendData); }