Beispiel #1
0
 private void OnTcpEndPointListening(object sender, TcpEndPointListeningEventArgs e)
 {
     try
     {
         _productCache.AddTail(e);
     }
     catch (System.Exception)
     {
     }
 }
Beispiel #2
0
 void INodeListenerObserver.OnEndPointListening(TcpListener listener)
 {
     try
     {
         var args = new TcpEndPointListeningEventArgs(_rsspConfig.LocalID, listener.LocalEndpoint as IPEndPoint);
         this.NotifyTcpEndPointListeningEvent(args);
     }
     catch (System.Exception)
     {
     }
 }
Beispiel #3
0
 protected void NotifyTcpEndPointListeningEvent(TcpEndPointListeningEventArgs args)
 {
     try
     {
         if (this.TcpEndPointListening != null)
         {
             this.TcpEndPointListening(null, args);
         }
     }
     catch (System.Exception)
     {
     }
 }
Beispiel #4
0
 private void ShowTcpEndPointListeningEvent(TcpEndPointListeningEventArgs args)
 {
     try
     {
         this.Invoke(new Action(() =>
         {
             this.UpdateListeningPoint(args.LocalID, args.EndPoint, true);
         }));
     }
     catch (System.Exception ex)
     {
         this.ShowLog(ex.Message);
     }
 }