/// <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}"; } }
protected virtual void OnClientExceptionOccured(UdpClientExceptionEventArgs e) { this.ClientExceptionOccured?.Invoke(this, e); }