public override void OnTimer() { if (timer.IsTimeout()) { TftpTrace.Trace("Network timeout.", Context); timer.Restart(); if (retriesUsed++ >= Context.RetryCount) { TftpTransferError error = new TimeoutError(Context.RetryTimeout, Context.RetryCount); Context.SetState(new ReceivedError(error)); } else { HandleTimeout(); } } }
protected virtual void OnTimeoutError(WcfClientServiceErrorEventArgs e) { TimeoutError?.Invoke(this, e); }