Table of Contents

Class RetryEvent

Namespace
PnP.Core.Services
Assembly
PnP.Core.dll

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

requestMessage HttpRequestMessage

Request that's retried

httpStatusCode int

Http status code

waitTime int

Wait before the next try in seconds

exception Exception

Socket exception that triggered the retry

Properties

Exception

SocketException that triggered the retry

public Exception Exception { get; }

Property Value

Exception

HttpStatusCode

Http status code for the retried request

public int HttpStatusCode { get; }

Property Value

int

Properties

Event property bag

public IDictionary<string, object> Properties { get; }

Property Value

IDictionary<string, object>

Request

Request that was retried

public Uri Request { get; }

Property Value

Uri

WaitTime

Wait before the next try in seconds

public int WaitTime { get; }

Property Value

int