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); }
public virtual void cancelable(CancellationHandler handler) { lock (this) { if (_cancellationException != null) { try { throw _cancellationException; } finally { _cancellationException = null; } } _cancellationHandler = handler; } }
public virtual void cancelable(CancellationHandler handler) { lock (this) { if (_cancellationException != null) { try { throw _cancellationException; } catch (Ice.LocalException) { _cancellationException = null; throw; } } _cancellationHandler = handler; } }