Class CliHttpClientExtensions
Inheritance
object
CliHttpClientExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Cli.Http
Assembly: Volo.Abp.Cli.Core.dll
Syntax
public static class CliHttpClientExtensions
Methods
AddAbpAuthenticationToken(HttpClient)
Declaration
public static void AddAbpAuthenticationToken(this HttpClient httpClient)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Net.Http.HttpClient | httpClient |
GetHttpResponseMessageWithRetryAsync<T>(HttpClient, string, CancellationToken?, ILogger<T>, IEnumerable<TimeSpan>)
Declaration
public static Task<HttpResponseMessage> GetHttpResponseMessageWithRetryAsync<T>(this HttpClient httpClient, string url, CancellationToken? cancellationToken = null, ILogger<T> logger = null, IEnumerable<TimeSpan> sleepDurations = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Net.Http.HttpClient | httpClient | |
| string | url | |
| System.Threading.CancellationToken? | cancellationToken | |
| Microsoft.Extensions.Logging.ILogger<TCategoryName><T> | logger | |
| System.Collections.Generic.IEnumerable<T><System.TimeSpan> | sleepDurations |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><System.Net.Http.HttpResponseMessage> |
Type Parameters
| Name | Description |
|---|---|
| T |