NamedPipeClient.ConnectAsync 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.
Overloads
ConnectAsync() |
Establish a connection with no custom headers. |
ConnectAsync(IDictionary<String,String>) |
Establish a connection with optional custom headers. |
ConnectAsync()
- Source:
- NamedPipeClient.cs
Establish a connection with no custom headers.
public System.Threading.Tasks.Task ConnectAsync ();
abstract member ConnectAsync : unit -> System.Threading.Tasks.Task
override this.ConnectAsync : unit -> System.Threading.Tasks.Task
Public Function ConnectAsync () As Task
Returns
A Task that will not resolve until the client stops listening for incoming messages.
Implements
Applies to
ConnectAsync(IDictionary<String,String>)
- Source:
- NamedPipeClient.cs
Establish a connection with optional custom headers.
public System.Threading.Tasks.Task ConnectAsync (System.Collections.Generic.IDictionary<string,string> requestHeaders);
abstract member ConnectAsync : System.Collections.Generic.IDictionary<string, string> -> System.Threading.Tasks.Task
override this.ConnectAsync : System.Collections.Generic.IDictionary<string, string> -> System.Threading.Tasks.Task
Public Function ConnectAsync (requestHeaders As IDictionary(Of String, String)) As Task
Parameters
- requestHeaders
- IDictionary<String,String>
An optional IDictionary<TKey,TValue> of string header names and string header values to include when sending the initial request to establish this connection.
Returns
A Task that will not resolve until the client stops listening for incoming messages.