Ejemplo n.º 1
0
 /// <summary>
 /// 套接字异常
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void AsyncNetUdpClient_ClientExceptionOccured(object sender, UdpClientExceptionEventArgs e)
 {
     if (this.ViewModel != null)
     {
         this.ViewModel.OutputString = $"套接字异常,{e.Exception.Message},{e.Exception.StackTrace}";
     }
 }
Ejemplo n.º 2
0
 protected virtual void OnClientExceptionOccured(UdpClientExceptionEventArgs e)
 {
     this.ClientExceptionOccured?.Invoke(this, e);
 }