Show / Hide Table of Contents

Class CliHttpClientFactory

Inheritance
object
CliHttpClientFactory
Implements
ISingletonDependency
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 class CliHttpClientFactory : ISingletonDependency

Constructors

CliHttpClientFactory(IHttpClientFactory, ICancellationTokenProvider)

Declaration
public CliHttpClientFactory(IHttpClientFactory clientFactory, ICancellationTokenProvider cancellationTokenProvider)
Parameters
Type Name Description
IHttpClientFactory clientFactory
ICancellationTokenProvider cancellationTokenProvider

Fields

DefaultTimeout

Declaration
public static readonly TimeSpan DefaultTimeout
Field Value
Type Description
TimeSpan

Methods

CreateClient(bool, TimeSpan?, string)

Declaration
public HttpClient CreateClient(bool needsAuthentication = true, TimeSpan? timeout = null, string clientName = null)
Parameters
Type Name Description
bool needsAuthentication
TimeSpan? timeout
string clientName
Returns
Type Description
HttpClient

GetCancellationToken(TimeSpan?)

Declaration
public CancellationToken GetCancellationToken(TimeSpan? timeout = null)
Parameters
Type Name Description
TimeSpan? timeout
Returns
Type Description
CancellationToken

Implements

ISingletonDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform