Esempio n. 1
0
 public override void cancelable(CancellationHandler handler)
 {
     if (proxy_.IceReference.getInvocationTimeout() == -2 && cachedConnection_ != null)
     {
         int timeout = cachedConnection_.timeout();
         if (timeout > 0)
         {
             communicator_.timer().schedule(this, timeout);
         }
     }
     base.cancelable(handler);
 }
Esempio n. 2
0
 public virtual void cancelable(CancellationHandler handler)
 {
     lock (this)
     {
         if (_cancellationException != null)
         {
             try
             {
                 throw _cancellationException;
             }
             finally
             {
                 _cancellationException = null;
             }
         }
         _cancellationHandler = handler;
     }
 }
Esempio n. 3
0
 public virtual void cancelable(CancellationHandler handler)
 {
     lock (this)
     {
         if (_cancellationException != null)
         {
             try
             {
                 throw _cancellationException;
             }
             catch (Ice.LocalException)
             {
                 _cancellationException = null;
                 throw;
             }
         }
         _cancellationHandler = handler;
     }
 }