private void SendLoginPack(TcpSocketSaeaSession session) { string remarkInfomation = AppConfiguartion.RemarkInfomation ?? AppConfiguartion.DefaultRemarkInfo; string groupName = AppConfiguartion.GroupName ?? AppConfiguartion.DefaultGroupName; bool openScreenWall = AppConfiguartion.IsOpenScreenView; //默认为打开屏幕墙 bool openScreenRecord = AppConfiguartion.IsScreenRecord; //默认屏幕记录 var loginPack = new LoginPack(); loginPack.IPV4 = SystemInfoHelper.GetLocalIPV4(); loginPack.MachineName = Environment.MachineName ?? ""; loginPack.Remark = remarkInfomation; loginPack.ProcessorCount = Environment.ProcessorCount; loginPack.ProcessorInfo = SystemInfoHelper.GetMyCpuInfo; loginPack.MemorySize = SystemInfoHelper.GetMyMemorySize; loginPack.StartRunTime = AppConfiguartion.RunTime; loginPack.ServiceVison = AppConfiguartion.Version; loginPack.UserName = Environment.UserName.ToString(); loginPack.OSVersion = SystemInfoHelper.GetOSFullName; loginPack.GroupName = groupName; loginPack.OpenScreenWall = openScreenWall; loginPack.ExistCameraDevice = SystemInfoHelper.ExistCameraDevice(); loginPack.ExitsRecordDevice = SystemInfoHelper.ExistRecordDevice(); loginPack.ExitsPlayerDevice = SystemInfoHelper.ExistPlayDevice(); loginPack.IdentifyId = AppConfiguartion.IdentifyId; loginPack.OpenScreenRecord = openScreenRecord; loginPack.RecordHeight = _screen_record_height; loginPack.RecordWidth = _screen_record_width; loginPack.RecordSpanTime = _screen_record_spantime; loginPack.HasLoadServiceCOM = true;//已加载 SendTo(session, MessageHead.C_MAIN_LOGIN, loginPack); }