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