Show / Hide Table of Contents

Class HandleUnsuccessfulResponseArgs

Argument class to HandleResponseAsync(HandleUnsuccessfulResponseArgs).

Inheritance
System.Object
HandleUnsuccessfulResponseArgs
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Http
Assembly: Google.Apis.Core.dll
Syntax
public class HandleUnsuccessfulResponseArgs

Properties

CancellationToken

Gets or sets the request's cancellation token.

Declaration
public CancellationToken CancellationToken { get; set; }
Property Value
Type Description
System.Threading.CancellationToken

CurrentFailedTry

Gets or sets the current failed try.

Declaration
public int CurrentFailedTry { get; set; }
Property Value
Type Description
System.Int32

Request

Gets or sets the sent request.

Declaration
public HttpRequestMessage Request { get; set; }
Property Value
Type Description
System.Net.Http.HttpRequestMessage

Response

Gets or sets the abnormal response.

Declaration
public HttpResponseMessage Response { get; set; }
Property Value
Type Description
System.Net.Http.HttpResponseMessage

SupportsRetry

Gets an indication whether a retry will occur if the handler returns true.

Declaration
public bool SupportsRetry { get; }
Property Value
Type Description
System.Boolean

TotalTries

Gets or sets the total number of tries to send the request.

Declaration
public int TotalTries { get; set; }
Property Value
Type Description
System.Int32

Extension Methods

Utilities.ThrowIfNull<T>(T, String)
In This Article
Back to top