private void OnTcpEndPointListenFailed(object sender, TcpEndPointListenFailedEventArgs e) { try { _productCache.AddTail(e); } catch (System.Exception) { } }
void INodeListenerObserver.OnEndPointListenFailed(TcpListener listener, string message) { try { var args = new TcpEndPointListenFailedEventArgs(_rsspConfig.LocalID, listener.LocalEndpoint as IPEndPoint); this.NotifyTcpEndPointListenFailedEvent(args); } catch (System.Exception) { } }
protected void NotifyTcpEndPointListenFailedEvent(TcpEndPointListenFailedEventArgs args) { try { if (this.TcpEndPointListenFailed != null) { this.TcpEndPointListenFailed(null, args); } } catch (System.Exception) { } }
private void ShowTcpEndPointListenFailedEvent(TcpEndPointListenFailedEventArgs args) { try { this.Invoke(new Action(() => { this.UpdateListeningPoint(args.LocalID, args.EndPoint, false); })); } catch (System.Exception ex) { this.ShowLog(ex.Message); } }