Exemple #1
0
 /// <summary>
 /// 关闭消息推送的界面
 /// </summary>
 public void ClosePush()
 {
     action = null;
     if (CoreSocket != null && CoreSocket.Connected)
     {
         CoreSocket?.Send(BitConverter.GetBytes(100));
     }
     CoreSocket?.Close( );
 }
 /// <summary>
 /// 关闭消息推送的界面
 /// </summary>
 public void ClosePush()
 {
     action = null;
     if (CoreSocket != null && CoreSocket.Connected)
     {
         CoreSocket?.Send(BitConverter.GetBytes(100));
     }
     System.Threading.Thread.Sleep(20);
     CoreSocket?.Close( );
 }