public WebProxyFactory(
IConnectionSettings connectionSettings,
[OptionalDependencyAttribute] ISessionTokenHolder? sessionTokenHolder = null,
[OptionalDependencyAttribute] ISessionVersionHolder? sessionVersionHolder = null,
[OptionalDependencyAttribute] IHttpClientPool? httpClientPool = null,
[OptionalDependencyAttribute] IWebProxyFactoryDependencies? dependencies = null,
[OptionalDependencyAttribute] IUnityDisposableContainer? unityDisposableContainer = null
)
Public Sub New (
connectionSettings As IConnectionSettings,
<OptionalDependencyAttribute> Optional sessionTokenHolder As ISessionTokenHolder = Nothing,
<OptionalDependencyAttribute> Optional sessionVersionHolder As ISessionVersionHolder = Nothing,
<OptionalDependencyAttribute> Optional httpClientPool As IHttpClientPool = Nothing,
<OptionalDependencyAttribute> Optional dependencies As IWebProxyFactoryDependencies = Nothing,
<OptionalDependencyAttribute> Optional unityDisposableContainer As IUnityDisposableContainer = Nothing
)
public:
WebProxyFactory(
IConnectionSettings^ connectionSettings,
[OptionalDependencyAttribute] ISessionTokenHolder^ sessionTokenHolder = nullptr,
[OptionalDependencyAttribute] ISessionVersionHolder^ sessionVersionHolder = nullptr,
[OptionalDependencyAttribute] IHttpClientPool^ httpClientPool = nullptr,
[OptionalDependencyAttribute] IWebProxyFactoryDependencies^ dependencies = nullptr,
[OptionalDependencyAttribute] IUnityDisposableContainer^ unityDisposableContainer = nullptr
)
new :
connectionSettings : IConnectionSettings *
[<OptionalDependencyAttribute>] ?sessionTokenHolder : ISessionTokenHolder *
[<OptionalDependencyAttribute>] ?sessionVersionHolder : ISessionVersionHolder *
[<OptionalDependencyAttribute>] ?httpClientPool : IHttpClientPool *
[<OptionalDependencyAttribute>] ?dependencies : IWebProxyFactoryDependencies *
[<OptionalDependencyAttribute>] ?unityDisposableContainer : IUnityDisposableContainer
(* Defaults:
let _sessionTokenHolder = defaultArg sessionTokenHolder null
let _sessionVersionHolder = defaultArg sessionVersionHolder null
let _httpClientPool = defaultArg httpClientPool null
let _dependencies = defaultArg dependencies null
let _unityDisposableContainer = defaultArg unityDisposableContainer null
*)
-> WebProxyFactory
Пул объектов HttpClient или null, если создаётся новый экземпляр пула с использованием настроек connectionSettings.
Переданный пул не освобождается при освобождении текущего объекта, если он не был создан в конструкторе.