예제 #1
0
 private void OnTcpEndPointListenFailed(object sender, TcpEndPointListenFailedEventArgs e)
 {
     try
     {
         _productCache.AddTail(e);
     }
     catch (System.Exception)
     {
     }
 }
예제 #2
0
 void INodeListenerObserver.OnEndPointListenFailed(TcpListener listener, string message)
 {
     try
     {
         var args = new TcpEndPointListenFailedEventArgs(_rsspConfig.LocalID, listener.LocalEndpoint as IPEndPoint);
         this.NotifyTcpEndPointListenFailedEvent(args);
     }
     catch (System.Exception)
     {
     }
 }
예제 #3
0
 protected void NotifyTcpEndPointListenFailedEvent(TcpEndPointListenFailedEventArgs args)
 {
     try
     {
         if (this.TcpEndPointListenFailed != null)
         {
             this.TcpEndPointListenFailed(null, args);
         }
     }
     catch (System.Exception)
     {
     }
 }
예제 #4
0
 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);
     }
 }