IClientTransportGetPooledConnectionAsync Method

Gets connection from the pool

Definition

Namespace: ARSoft.Tools.Net.Dns
Assembly: ARSoft.Tools.Net (in ARSoft.Tools.Net.dll) Version: 3.6.1+aaafdcd61f068318c11734f7b3c59c69371c0549
C#
Task<IClientConnection?> GetPooledConnectionAsync(
	DnsClientEndpointInfo endpointInfo,
	CancellationToken token = default
)

Parameters

endpointInfo  DnsClientEndpointInfo
The endpoint of the connection
token  CancellationToken  (Optional)
The token to monitor cancellation requests

Return Value

TaskIClientConnection
A pooled connection or null, if no connection to the specified endpoint exists in the pool

See Also