Exemple #1
0
 /// <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());
     }
 }
Exemple #2
0
 static MVPDownloadService()
 {
     _loger = LogManager.GetLogger("MVPDownloadService");
     _messageMaganer = new MessageManagement();
     _downloadManager = new DownloadManagement();
 }
Exemple #3
0
 static MVPDownloadService()
 {
     _loger           = LogManager.GetLogger("MVPDownloadService");
     _messageMaganer  = new MessageManagement();
     _downloadManager = new DownloadManagement();
 }