IClientTransportGetPooledConnectionAsync Method
Gets connection from the pool
Namespace: ARSoft.Tools.Net.DnsAssembly: ARSoft.Tools.Net (in ARSoft.Tools.Net.dll) Version: 3.6.1+aaafdcd61f068318c11734f7b3c59c69371c0549
Task<IClientConnection?> GetPooledConnectionAsync(
DnsClientEndpointInfo endpointInfo,
CancellationToken token = default
)
Function GetPooledConnectionAsync (
endpointInfo As DnsClientEndpointInfo,
Optional token As CancellationToken = Nothing
) As Task(Of IClientConnection)
Task<IClientConnection^>^ GetPooledConnectionAsync(
DnsClientEndpointInfo^ endpointInfo,
CancellationToken token = CancellationToken()
)
abstract GetPooledConnectionAsync :
endpointInfo : DnsClientEndpointInfo *
?token : CancellationToken
(* Defaults:
let _token = defaultArg token new CancellationToken()
*)
-> Task<IClientConnection>
- endpointInfo DnsClientEndpointInfo
- The endpoint of the connection
- token CancellationToken (Optional)
- The token to monitor cancellation requests
TaskIClientConnectionA pooled connection or null, if no connection to the specified endpoint exists in the pool