private void OnTcpConnectFailed(object sender, TcpConnectFailedEventArgs e) { try { _productCache.AddTail(e); } catch (System.Exception) { } }
private void ShowTcpConnectFailedEvent(TcpConnectFailedEventArgs args) { try { this.Invoke(new Action(() => { })); } catch (System.Exception ex) { this.ShowLog(ex.Message); } }
void IAleTunnelEventNotifier.NotifyTcpConnectFailure(TcpConnectFailedEventArgs args) { try { if (this.TcpConnectFailed != null) { this.TcpConnectFailed(null, args); } } catch (System.Exception) { } }
void IAleClientTunnelObserver.OnTcpConnectFailure(AleClientTunnel theConnection, string reason) { try { var args = new TcpConnectFailedEventArgs(theConnection.ID, this.RsspEP.LocalID, theConnection.LocalEndPoint, this.RsspEP.RemoteID, theConnection.RemoteEndPoint); this.TunnelEventNotifier.NotifyTcpConnectFailure(args); } catch (System.Exception ex) { LogUtility.Error(ex.ToString()); } }