Class CliHttpClient
Inheritance
System.Object
CliHttpClient
Assembly: Volo.Abp.Cli.Core.dll
Syntax
public class CliHttpClient : HttpClient
Constructors
CliHttpClient(Boolean)
Declaration
public CliHttpClient(bool setBearerToken)
Parameters
| Type |
Name |
Description |
| System.Boolean |
setBearerToken |
|
CliHttpClient(Nullable<TimeSpan>)
Declaration
public CliHttpClient(TimeSpan? timeout = null)
Parameters
| Type |
Name |
Description |
| System.Nullable<TimeSpan> |
timeout |
|
Properties
DefaultTimeout
Declaration
public static TimeSpan DefaultTimeout { get; set; }
Property Value
| Type |
Description |
| TimeSpan |
|
Methods
GetHttpResponseMessageWithRetryAsync<T>(String, Nullable<CancellationToken>, ILogger<T>, IEnumerable<TimeSpan>)
Declaration
public Task<HttpResponseMessage> GetHttpResponseMessageWithRetryAsync<T>(string url, CancellationToken? cancellationToken = null, ILogger<T> logger = null, IEnumerable<TimeSpan> sleepDurations = null)
Parameters
| Type |
Name |
Description |
| System.String |
url |
|
| System.Nullable<CancellationToken> |
cancellationToken |
|
| ILogger<T> |
logger |
|
| IEnumerable<TimeSpan> |
sleepDurations |
|
Returns
| Type |
Description |
| Task<HttpResponseMessage> |
|
Type Parameters
Extension Methods