private static HandleResult OnReceive(TcpClient sender, byte[] bytes) { string msg = System.Text.Encoding.Default.GetString(bytes); SystemCommon.ReceiveMsg(msg); CYQ.Data.Log.WriteLogToTxt(msg); return(HandleResult.Ok); }
/// <summary> /// 初始化项目 /// </summary> public static void Init() { InitSocketClient(); GetCameraConfigInfo(); CheckUnReceiveNotice(); SystemCommon.AddObserver(SocketMsgCommon.ReceiveNotice); SystemCommon.Update(SystemCommon.LoginUnit.OrganizeId); }