[InjectionConstructorAttribute]
[UsedImplicitlyAttribute]
public HttpClientPool(
IHttpClientFactory httpClientFactory,
[OptionalDependencyAttribute] IHttpClientCreationOptions? options = null,
[OptionalDependencyAttribute] IUnityDisposableContainer? unityDisposableContainer = null
)
<InjectionConstructorAttribute>
<UsedImplicitlyAttribute>
Public Sub New (
httpClientFactory As IHttpClientFactory,
<OptionalDependencyAttribute> Optional options As IHttpClientCreationOptions = Nothing,
<OptionalDependencyAttribute> Optional unityDisposableContainer As IUnityDisposableContainer = Nothing
)
public:
[InjectionConstructorAttribute]
[UsedImplicitlyAttribute]
HttpClientPool(
IHttpClientFactory^ httpClientFactory,
[OptionalDependencyAttribute] IHttpClientCreationOptions^ options = nullptr,
[OptionalDependencyAttribute] IUnityDisposableContainer^ unityDisposableContainer = nullptr
)
[<InjectionConstructorAttribute>]
[<UsedImplicitlyAttribute>]
new :
httpClientFactory : IHttpClientFactory *
[<OptionalDependencyAttribute>] ?options : IHttpClientCreationOptions *
[<OptionalDependencyAttribute>] ?unityDisposableContainer : IUnityDisposableContainer
(* Defaults:
let _options = defaultArg options null
let _unityDisposableContainer = defaultArg unityDisposableContainer null
*)
-> HttpClientPool
Опции для создания объектов HttpClient или null, если используются опции по умолчанию.
Таймаут по умолчанию определяется реализацией в httpClientFactory, в платформе используется значение по умолчанию в .NET для класса HttpClient, это 100 секунд.