Microsoft.Threading.Tasks.Extensions.Desktop
Returns a canceled task.
The cancellation token.
The canceled task.
Returns a canceled task.
Specifies the type of the result.
The cancellation token.
The canceled task.
Completes the Task if the user state matches the TaskCompletionSource.
Specifies the type of data returned by the Task.
The TaskCompletionSource.
The completion event arguments.
Whether we require the tcs to match the e.UserState.
A function that gets the result with which to complete the task.
An action used to unregister work when the operaiton completes.
Provides asynchronous wrappers for .NET Framework operations.
Provides asynchronous wrappers for .NET Framework operations.
Downloads the resource with the specified URI as a string, asynchronously.
The WebClient.
The URI from which to download data.
A Task that contains the downloaded string.
Downloads the resource with the specified URI as a string, asynchronously.
The WebClient.
The URI from which to download data.
A Task that contains the downloaded string.
Opens a readable stream for the data downloaded from a resource, asynchronously.
The WebClient.
The URI for which the stream should be opened.
A Task that contains the opened stream.
Opens a readable stream for the data downloaded from a resource, asynchronously.
The WebClient.
The URI for which the stream should be opened.
A Task that contains the opened stream.
Opens a writeable stream for uploading data to a resource, asynchronously.
The WebClient.
The URI for which the stream should be opened.
A Task that contains the opened stream.
Opens a writeable stream for uploading data to a resource, asynchronously.
The WebClient.
The URI for which the stream should be opened.
A Task that contains the opened stream.
Opens a writeable stream for uploading data to a resource, asynchronously.
The WebClient.
The URI for which the stream should be opened.
The HTTP method that should be used to open the stream.
A Task that contains the opened stream.
Opens a writeable stream for uploading data to a resource, asynchronously.
The WebClient.
The URI for which the stream should be opened.
The HTTP method that should be used to open the stream.
A Task that contains the opened stream.
Uploads data in a string to the specified resource, asynchronously.
The WebClient.
The URI to which the data should be uploaded.
The data to upload.
A Task containing the data in the response from the upload.
Uploads data in a string to the specified resource, asynchronously.
The WebClient.
The URI to which the data should be uploaded.
The data to upload.
A Task containing the data in the response from the upload.
Uploads data in a string to the specified resource, asynchronously.
The WebClient.
The URI to which the data should be uploaded.
The HTTP method that should be used to upload the data.
The data to upload.
A Task containing the data in the response from the upload.
Uploads data in a string to the specified resource, asynchronously.
The WebClient.
The URI to which the data should be uploaded.
The HTTP method that should be used to upload the data.
The data to upload.
A Task containing the data in the response from the upload.
Converts a path to a Uri using the WebClient's logic.
Based on WebClient's private GetUri method.
Converts a path to a Uri using the WebClient's logic.
Based on WebClient's private GetUri method.
Downloads the resource with the specified URI as a byte array, asynchronously.
The WebClient.
The URI from which to download data.
A Task that contains the downloaded data.
Downloads the resource with the specified URI as a byte array, asynchronously.
The WebClient.
The URI from which to download data.
A Task that contains the downloaded data.
Downloads the resource with the specified URI to a local file, asynchronously.
The WebClient.
The URI from which to download data.
The name of the local file that is to receive the data.
A Task that contains the downloaded data.
Downloads the resource with the specified URI to a local file, asynchronously.
The WebClient.
The URI from which to download data.
The name of the local file that is to receive the data.
A Task that contains the downloaded data.
Uploads data to the specified resource, asynchronously.
The WebClient.
The URI to which the data should be uploaded.
The data to upload.
A Task containing the data in the response from the upload.
Uploads data to the specified resource, asynchronously.
The WebClient.
The URI to which the data should be uploaded.
The data to upload.
A Task containing the data in the response from the upload.
Uploads data to the specified resource, asynchronously.
The WebClient.
The URI to which the data should be uploaded.
The HTTP method that should be used to upload the data.
The data to upload.
A Task containing the data in the response from the upload.
Uploads data to the specified resource, asynchronously.
The WebClient.
The URI to which the data should be uploaded.
The HTTP method that should be used to upload the data.
The data to upload.
A Task containing the data in the response from the upload.
Uploads a file to the specified resource, asynchronously.
The WebClient.
The URI to which the file should be uploaded.
A path to the file to upload.
A Task containing the data in the response from the upload.
Uploads a file to the specified resource, asynchronously.
The WebClient.
The URI to which the file should be uploaded.
A path to the file to upload.
A Task containing the data in the response from the upload.
Uploads a file to the specified resource, asynchronously.
The WebClient.
The URI to which the file should be uploaded.
The HTTP method that should be used to upload the file.
A path to the file to upload.
A Task containing the data in the response from the upload.
Uploads a file to the specified resource, asynchronously.
The WebClient.
The URI to which the file should be uploaded.
The HTTP method that should be used to upload the file.
A path to the file to upload.
A Task containing the data in the response from the upload.
Causes an online announcement (Hello) message to be sent asynchronously with the specified endpoint discovery metadata and user-defined state. The specified is called when the operation completes.
Task instance.
The endpoint discovery metadata.
The source.
Causes an offline announcement (Bye) message to be sent asynchronously with the specified endpoint discovery metadata and user-defined state. The specified is called when the operation completes.
Task instance.
The endpoint discovery metadata.
The source.
Begins asynchronously retrieving an incoming request.
Task object that indicates the status of the asynchronous operation.
A Win32 function call failed. Check the exception's property to determine the cause of the exception.
This object has not been started or is currently stopped.
This object is closed.
The source.
Starts an asynchronous request for the client's X.509 v.3 certificate.
Task that indicates the status of the operation.
The source.
Called by clients to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. This method does not block.
Task object indicating the status of the asynchronous operation.
The authentication failed. You can use this object to retry the authentication.
The authentication failed. You can use this object to retry the authentication.
This object has been closed.
Authentication has already occurred.- or -This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.
The source.
Called by clients to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified credentials. This method does not block.
Task object indicating the status of the asynchronous operation.
The that is used to establish the identity of the client.
The Service Principal Name (SPN) that uniquely identifies the server to authenticate.
is null.- or - is null.
The authentication failed. You can use this object to retry the authentication.
The authentication failed. You can use this object to retry the authentication.
This object has been closed.
Authentication has already occurred.- or -This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.
The source.
Called by clients to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified credentials and channel binding. This method does not block.
Task object indicating the status of the asynchronous operation.
The that is used to establish the identity of the client.
The that is used for extended protection.
The Service Principal Name (SPN) that uniquely identifies the server to authenticate.
is null.- or - is null.
The authentication failed. You can use this object to retry the authentication.
The authentication failed. You can use this object to retry the authentication.
Authentication has already occurred.- or -This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.
This object has been closed.
The source.
Called by servers to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. This method does not block.
Task object indicating the status of the asynchronous operation.
The authentication failed. You can use this object to retry the authentication.
The authentication failed. You can use this object to retry the authentication.
This object has been closed.
Windows 95 and Windows 98 are not supported.
The source.
Called by servers to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified extended protection policy. This method does not block.
Task object indicating the status of the asynchronous operation.
The that is used for extended protection.
The and on the extended protection policy passed in the parameter are both null.
The authentication failed. You can use this object to retry the authentication.
The authentication failed. You can use this object to retry the authentication.
Windows 95 and Windows 98 are not supported.
This object has been closed.
The source.
Called by servers to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified server credentials and authentication options. This method does not block.
Task object indicating the status of the asynchronous operation.
The that is used to establish the identity of the client.
One of the values, indicating the security services for the stream.
One of the values, indicating how the server can use the client's credentials to access resources.
is null.
must be , , or ,
The authentication failed. You can use this object to retry the authentication.
The authentication failed. You can use this object to retry the authentication.
This object has been closed.
Authentication has already occurred.- or -This stream was used previously to attempt authentication as the client. You cannot use the stream to retry authentication as the server.
Windows 95 and Windows 98 are not supported.
The source.
Called by clients to begin an asynchronous operation to authenticate the server and optionally the client.
Task object that indicates the status of the asynchronous operation.
The name of the server that shares this .
is null.
The authentication failed and left this object in an unusable state.
Authentication has already occurred.-or-Server authentication using this was tried previously.-or- Authentication is already in progress.
This object has been closed.
The source.
Called by servers to begin an asynchronous operation to authenticate the client and optionally the server in a client-server connection.
Task object indicating the status of the asynchronous operation.
The X509Certificate used to authenticate the server.
is null.
The authentication failed and left this object in an unusable state.
Authentication has already occurred.-or-Client authentication using this was tried previously.-or- Authentication is already in progress.
This object has been closed.
The method is not supported on Windows 95, Windows 98, or Windows Millennium.
The source.
Starts an asynchronous request for a remote host connection. The host is specified by a host name and a port number.
Task that represents the asynchronous connection.
The name of the remote host.
The port number of the remote host.
is null.
The has been closed.
This method is valid for sockets in the or families.
The port number is not valid.
The is ing.
The source.
Starts an asynchronous request for a remote host connection. The host is specified by an and a port number.
Task that represents the asynchronous connection.
The of the remote host.
The port number of the remote host.
is null.
An error occurred when attempting to access the socket. See the Remarks section for more information.
The has been closed.
The is not in the socket family.
The port number is not valid.
The length of is zero.
The is ing.
The source.
Starts an asynchronous request for a remote host connection. The host is specified by an array and a port number.
Task that represents the asynchronous connections.
At least one , designating the remote host.
The port number of the remote host.
is null.
An error occurred when attempting to access the socket. See the Remarks section for more information.
The has been closed.
This method is valid for sockets that use or .
The port number is not valid.
The length of is zero.
The is ing.
The source.
Starts an asynchronous operation to accept an incoming connection attempt.
Task that represents the asynchronous creation of the .
An error occurred while attempting to access the socket. See the Remarks section for more information.
The has been closed.
The source.
Starts an asynchronous operation to accept an incoming connection attempt.
Task that represents the asynchronous creation of the .
An error occurred while attempting to access the socket. See the Remarks section for more information.
The has been closed.
The source.
Sends a datagram to a destination asynchronously. The destination is specified by a .
Task object that represents the asynchronous send.
A array that contains the data to be sent.
The number of bytes to send.
The that represents the destination for the data.
The source.
Sends a datagram to a remote host asynchronously. The destination was specified previously by a call to .
Task object that represents the asynchronous send.
A array that contains the data to be sent.
The number of bytes to send.
The source.
Sends a datagram to a remote host asynchronously. The destination was specified previously by a call to .
Task object that represents the asynchronous send.
A array that contains the data to be sent.
The number of bytes to send.
The host name.
The host name.
The source.
Starts an asynchronous request to retrieve the stable unicast IP address table on the local computer.
Task that represents the asynchronous request.
This method is not implemented on the platform. This method uses the native NotifyStableUnicastIpAddressTable function that is supported on Windows Vista and later.
The call to the native NotifyStableUnicastIpAddressTable function failed.
The source.
Opens the connection asynchronously.
The source.
Task that represents the asynchronous request.
Opens the connection asynchronously.
The source.
The cancellation token.
Task that represents the asynchronous request.
Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this , given a callback procedure and state information.
Task that can be used to poll or wait for results, or both; this value is also needed when invoking , which returns the number of affected rows.
Any error that occurred while executing the command text.
The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this .
2
The source.
Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this , given a callback procedure and state information.
Task that can be used to poll or wait for results, or both; this value is also needed when invoking , which returns the number of affected rows.
Any error that occurred while executing the command text.
The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this .
2
The cancellation token.
The source.
Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this and returns results as an object, using a callback procedure.
Task that can be used to poll, wait for results, or both; this value is also needed when the is called, which returns the results of the command as XML.
Any error that occurred while executing the command text.
The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this .
2
The source.
Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this and returns results as an object, using a callback procedure.
Task that can be used to poll, wait for results, or both; this value is also needed when the is called, which returns the results of the command as XML.
Any error that occurred while executing the command text.
The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this .
2
The cancellation token.
The source.
Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this and retrieves one or more result sets from the server, given a callback procedure and state information.
Task that can be used to poll, wait for results, or both; this value is also needed when invoking , which returns a instance which can be used to retrieve the returned rows.
Any error that occurred while executing the command text.
The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this .
2
The source.
Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this and retrieves one or more result sets from the server, given a callback procedure and state information.
Task that can be used to poll, wait for results, or both; this value is also needed when invoking , which returns a instance which can be used to retrieve the returned rows.
Any error that occurred while executing the command text.
The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this .
2
The cancellation token.
The source.
Starts an asynchronous method call that returns a .
The metadata.
The source.
Starts an asynchronous method call that returns a using the specified address, callback, asynchronous state, and download mechanism.
The metadata obtained from the specified .
The address of the metadata.
The value to use when downloading the metadata.
The source.
Starts an asynchronous method call that returns a using the specified address, callback, and asynchronous state.
The metadata obtained from the specified .
The address of the metadata.
The source.
Begins an asynchronous find operation with the specified criteria.
The discovery client.
The criteria for finding services.
A Task that represents the asynchronous operation.
Begins an asynchronous resolve operation with the specified criteria.
The discovery client.
The criteria for matching a service endpoint.
A Task that represents the asynchronous operation.
Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message.
The Ping.
An IPAddress that identifies the computer that is the destination for the ICMP echo message.
A task that represents the asynchronous operation.
Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message.
The Ping.
A String that identifies the computer that is the destination for the ICMP echo message.
The value specified for this parameter can be a host name or a string representation of an IP address.
A task that represents the asynchronous operation.
Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message.
The Ping.
An IPAddress that identifies the computer that is the destination for the ICMP echo message.
An Int32 value that specifies the maximum number of milliseconds (after sending the echo message)
to wait for the ICMP echo reply message.
A task that represents the asynchronous operation.
Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message.
The Ping.
A String that identifies the computer that is the destination for the ICMP echo message.
The value specified for this parameter can be a host name or a string representation of an IP address.
An Int32 value that specifies the maximum number of milliseconds (after sending the echo message)
to wait for the ICMP echo reply message.
A task that represents the asynchronous operation.
Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message.
The Ping.
An IPAddress that identifies the computer that is the destination for the ICMP echo message.
An Int32 value that specifies the maximum number of milliseconds (after sending the echo message)
to wait for the ICMP echo reply message.
A Byte array that contains data to be sent with the ICMP echo message and returned
in the ICMP echo reply message. The array cannot contain more than 65,500 bytes.
A task that represents the asynchronous operation.
Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message.
The Ping.
A String that identifies the computer that is the destination for the ICMP echo message.
The value specified for this parameter can be a host name or a string representation of an IP address.
An Int32 value that specifies the maximum number of milliseconds (after sending the echo message)
to wait for the ICMP echo reply message.
A Byte array that contains data to be sent with the ICMP echo message and returned
in the ICMP echo reply message. The array cannot contain more than 65,500 bytes.
A task that represents the asynchronous operation.
Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message.
The Ping.
An IPAddress that identifies the computer that is the destination for the ICMP echo message.
An Int32 value that specifies the maximum number of milliseconds (after sending the echo message)
to wait for the ICMP echo reply message.
A Byte array that contains data to be sent with the ICMP echo message and returned
in the ICMP echo reply message. The array cannot contain more than 65,500 bytes.
A PingOptions object used to control fragmentation and Time-to-Live values for the ICMP echo message packet.
A task that represents the asynchronous operation.
Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message.
The Ping.
A String that identifies the computer that is the destination for the ICMP echo message.
The value specified for this parameter can be a host name or a string representation of an IP address.
An Int32 value that specifies the maximum number of milliseconds (after sending the echo message)
to wait for the ICMP echo reply message.
A Byte array that contains data to be sent with the ICMP echo message and returned
in the ICMP echo reply message. The array cannot contain more than 65,500 bytes.
A PingOptions object used to control fragmentation and Time-to-Live values for the ICMP echo message packet.
A task that represents the asynchronous operation.
The core implementation of SendTaskAsync.
The Ping.
A user-defined object stored in the resulting Task.
A delegate that initiates the asynchronous send.
The provided TaskCompletionSource must be passed as the user-supplied state to the actual Ping.SendAsync method.
Sends an e-mail message asynchronously.
The client.
A String that contains the address information of the message sender.
A String that contains the address that the message is sent to.
A String that contains the subject line for the message.
A String that contains the message body.
A Task that represents the asynchronous send.
Sends an e-mail message asynchronously.
The client.
A MailMessage that contains the message to send.
A Task that represents the asynchronous send.
The core implementation of SendTaskAsync.
The client.
The user-supplied state.
A delegate that initiates the asynchronous send.
The provided TaskCompletionSource must be passed as the user-supplied state to the actual SmtpClient.SendAsync method.
Provides asynchronous wrappers for the class.
Asynchronously returns the Internet Protocol (IP) addresses for the specified host.
The host name or IP address to resolve.
An array of type System.Net.IPAddress that holds the IP addresses for the host specified.
Asynchronously resolves an IP address to an System.Net.IPHostEntry instance.
The IP address to resolve.
An System.Net.IPHostEntry instance that contains address information about the host.
Asynchronously resolves an IP address to an System.Net.IPHostEntry instance.
The host name or IP address to resolve.
An System.Net.IPHostEntry instance that contains address information about the host.