예제 #1
0
 public void finished(Ice.LocalException ex, bool sent)
 {
     _m.Lock();
     if(_remoteObserver != null)
     {
         _remoteObserver.failed(ex.ice_name());
         _remoteObserver.detach();
     }
     try
     {
         _exception = ex;
         _m.Notify();
     }
     finally
     {
         _m.Unlock();
     }
 }
예제 #2
0
 private void exception(ref bool haveResponse, Ice.Exception ex)
 {
     haveResponse = true;
     lblStatus.Text = "Exception: " + ex.ice_name();
 }
예제 #3
0
 public void finished(Ice.LocalException ex, bool sent)
 {
     _m.Lock();
     try
     {
         Debug.Assert(_state <= StateInProgress);
         if(_remoteObserver != null)
         {
             _remoteObserver.failed(ex.ice_name());
             _remoteObserver.detach();
             _remoteObserver = null;
         }
         _state = StateFailed;
         _exception = ex;
         _sent = sent;
         _m.Notify();
     }
     finally
     {
         _m.Unlock();
     }
 }
예제 #4
0
파일: MainForm.cs 프로젝트: bholl/zeroc-ice
 public void exception(Ice.Exception ex)
 {
     lock(this)
     {
         _response = true;
         _mainForm.lblStatus.Text = "Exception: " + ex.ice_name();
     }
 }