Beispiel #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());
     }
 }
Beispiel #2
0
 public MessageManagement()
 {
     _ipAddress = HardwareHelper.GetIpAddress();
     _diskcode  = HardwareHelper.GetBIOSSerialNumber();
 }