Class RetryEvent
Event containing information about the happened retry
public sealed class RetryEvent : IRetryEvent
- Inheritance
-
RetryEvent
- Implements
- Inherited Members
Constructors
RetryEvent(HttpRequestMessage, int, int, Exception)
Retry event constructor
public RetryEvent(HttpRequestMessage requestMessage, int httpStatusCode, int waitTime, Exception exception)
Parameters
requestMessageHttpRequestMessageRequest that's retried
httpStatusCodeintHttp status code
waitTimeintWait before the next try in seconds
exceptionExceptionSocket exception that triggered the retry
Properties
Exception
SocketException that triggered the retry
public Exception Exception { get; }
Property Value
HttpStatusCode
Http status code for the retried request
public int HttpStatusCode { get; }
Property Value
Properties
Event property bag
public IDictionary<string, object> Properties { get; }
Property Value
Request
Request that was retried
public Uri Request { get; }
Property Value
WaitTime
Wait before the next try in seconds
public int WaitTime { get; }