예제 #1
0
        public async Task <JsonResult> StopTcpServer()
        {
            bool result = TcpServerProcess.StopTcpServer();

            if (result)
            {
                await YummyOnlineManager.RecordLog(Log.LogProgram.System, Log.LogLevel.Warning, "TcpServer Stoped");

                return(Json(new JsonSuccess()));
            }
            return(Json(new JsonError("关闭失败")));
        }
예제 #2
0
 public JsonResult GetTcpServerInfo()
 {
     return(Json(TcpServerProcess.GetTcpServerInfo()));
 }