コード例 #1
0
 public override void Cancelable(ICancellationHandler handler)
 {
     if (Proxy.IceReference.GetInvocationTimeout() == -2 && CachedConnection != null)
     {
         int timeout = CachedConnection.Timeout;
         if (timeout > 0)
         {
             Communicator.Timer().Schedule(this, timeout);
         }
     }
     base.Cancelable(handler);
 }
コード例 #2
0
 public virtual void Cancelable(ICancellationHandler handler)
 {
     lock (this)
     {
         if (_cancellationException != null)
         {
             try
             {
                 throw _cancellationException;
             }
             catch (Ice.LocalException)
             {
                 _cancellationException = null;
                 throw;
             }
         }
         _cancellationHandler = handler;
     }
 }
コード例 #3
0
 public void Cancelable(ICancellationHandler handler)
 {
     lock (this)
     {
         if (_cancellationException != null)
         {
             try
             {
                 throw _cancellationException;
             }
             catch (System.Exception)
             {
                 _cancellationException = null;
                 throw;
             }
         }
         _cancellationHandler = handler;
     }
 }