Ejemplo n.º 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());
     }
 }
Ejemplo n.º 2
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());
     }
 }