Пример #1
0
        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();
                }
            }
        }
Пример #2
0
 protected virtual void OnTimeoutError(WcfClientServiceErrorEventArgs e)
 {
     TimeoutError?.Invoke(this, e);
 }