2 using System.Collections.Generic;
8 namespace Pithos.Network
10 class TimeoutRetryCondition:RetryResultCondition
12 public override Predicate<Hammock.Web.WebQueryResult> RetryIf
18 var responseStatus = r.ResponseHttpStatusCode;
19 if (r.Exception == null)
21 if (!(r.Exception is WebException))
23 var exceptionStatus = ((WebException) r.Exception).Status;
24 return (r.Exception != null
25 && (exceptionStatus == WebExceptionStatus.Timeout));