IClientConnectionOperatorExtensions.OpenConnectionAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Runs OpenConnection(IOperatedClientConnection, HttpHost, InetAddress, IHttpContext, IHttpParams) on a thread pool thread to open a connection to the target host.
public static System.Threading.Tasks.Task OpenConnectionAsync(this Org.Apache.Http.Conn.IClientConnectionOperator self, Org.Apache.Http.Conn.IOperatedClientConnection? conn, Org.Apache.Http.HttpHost? target, Java.Net.InetAddress? local, Org.Apache.Http.Protocol.IHttpContext? context, Org.Apache.Http.Params.IHttpParams? params);
static member OpenConnectionAsync : Org.Apache.Http.Conn.IClientConnectionOperator * Org.Apache.Http.Conn.IOperatedClientConnection * Org.Apache.Http.HttpHost * Java.Net.InetAddress * Org.Apache.Http.Protocol.IHttpContext * Org.Apache.Http.Params.IHttpParams -> System.Threading.Tasks.Task
Parameters
The operator that opens the connection.
The connection to open.
- target
- HttpHost
The target host to connect to.
- local
- InetAddress
The local address to connect from, or null to use the default address.
- context
- IHttpContext
The context for the connection.
- params
- IHttpParams
The HTTP parameters for the connection.
Returns
A task that completes when the synchronous connection method completes. If that method throws an exception, the task is faulted with that exception.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.