/// <summary> /// 向服务端发送正在下载的消息 /// </summary> /// <param name="state">state</param> private void SendDownloadingMessage(object state) { while (_downloadStatus == DownLoadStaus.Downloading) { DownloadingMessage downloadingMsg = new DownloadingMessage { messageType = "downloading", account = HardwareHelper.GetIpAddress(), diskCode = HardwareHelper.GetBIOSSerialNumber(), version = state.ToString() }; MessageManagement.Send(downloadingMsg.ToJson()); } }
static MVPDownloadService() { _loger = LogManager.GetLogger("MVPDownloadService"); _messageMaganer = new MessageManagement(); _downloadManager = new DownloadManagement(); }