Microsoft.Threading.Tasks.Extensions 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. Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. A Task that represents the asynchronous read. The source. The buffer to read data into. The byte offset in at which to begin reading. The maximum number of bytes to read. The array length minus is less than . is null. or is negative. An asynchronous read was attempted past the end of the file. Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. A Task that represents the asynchronous read. The source. The buffer to read data into. The byte offset in at which to begin reading. The maximum number of bytes to read. The cancellation token. The array length minus is less than . is null. or is negative. An asynchronous read was attempted past the end of the file. Writes asynchronously a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. A Task that represents the asynchronous write. The source. The buffer containing data to write to the current stream. The zero-based byte offset in at which to begin copying bytes to the current stream. The maximum number of bytes to write. length minus is less than . is null. or is negative. The stream does not support writing. The stream is closed. An I/O error occurred. Writes asynchronously a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. A Task that represents the asynchronous write. The source. The buffer containing data to write to the current stream. The zero-based byte offset in at which to begin copying bytes to the current stream. The maximum number of bytes to write. The cancellation token. length minus is less than . is null. or is negative. The stream does not support writing. The stream is closed. An I/O error occurred. Flushes asynchronously the current stream. A Task that represents the asynchronous flush. Flushes asynchronously the current stream. A Task that represents the asynchronous flush. Reads all the bytes from the current stream and writes them to the destination stream. The source stream. The stream that will contain the contents of the current stream. A Task that represents the asynchronous operation. Reads all the bytes from the current stream and writes them to the destination stream. The source stream. The stream that will contain the contents of the current stream. The size of the buffer. This value must be greater than zero. The default size is 4096. A Task that represents the asynchronous operation. Reads all the bytes from the current stream and writes them to the destination stream. The source stream. The stream that will contain the contents of the current stream. The size of the buffer. This value must be greater than zero. The default size is 4096. The cancellation token to use to cancel the asynchronous operation. A Task that represents the asynchronous operation. Reads all the bytes from the current stream and writes them to the destination stream. The source stream. The stream that will contain the contents of the current stream. The size of the buffer. This value must be greater than zero. The default size is 4096. The cancellation token to use to cancel the asynchronous operation. A Task that represents the asynchronous operation. Reads a maximum of count characters from the reader asynchronously and writes the data to buffer, beginning at index. When the operation completes, contains the specified character array with the values between index and (index + count - 1) replaced by the characters read from the current source. The maximum number of characters to read. If the end of the stream is reached before count of characters is read into buffer, the current method returns. The place in buffer at which to begin writing. the source reader. A Task that represents the asynchronous operation. Reads asynchronously a maximum of count characters from the current stream, and writes the data to buffer, beginning at index. The source reader. When this method returns, this parameter contains the specified character array with the values between index and (index + count -1) replaced by the characters read from the current source. The position in buffer at which to begin writing. The maximum number of characters to read. A Task that represents the asynchronous operation. Reads a line of characters from the reader and returns the string asynchronously. the source reader. A Task that represents the asynchronous operation. Reads all characters from the current position to the end of the TextReader and returns them as one string asynchronously. the source reader. A Task that represents the asynchronous operation. Writes a string asynchronously to a text stream. The writer. The string to write. A Task representing the asynchronous write. Writes a char asynchronously to a text stream. The writer. The char to write. A Task representing the asynchronous write. Writes a char array asynchronously to a text stream. The writer. The buffer to write. A Task representing the asynchronous write. Writes a subarray of characters asynchronously to a text stream. The writer. The buffer to write. Starting index in the buffer. The number of characters to write. A Task representing the asynchronous write. Writes a line terminator asynchronously to a text stream. The writer. A Task representing the asynchronous write. Writes a string followed by a line terminator asynchronously to a text stream. The writer. The string to write. A Task representing the asynchronous write. Writes a char followed by a line terminator asynchronously to a text stream. The writer. The char to write. A Task representing the asynchronous write. Writes a char array followed by a line terminator asynchronously to a text stream. The writer. The buffer to write. A Task representing the asynchronous write. Writes a subarray of characters followed by a line terminator asynchronously to a text stream. The writer. The buffer to write. Starting index in the buffer. The number of characters to write. A Task representing the asynchronous write. Clears all buffers for the current writer and causes any buffered data to be written to the underlying device. The writer. A Task representing the asynchronous flush. Starts an asynchronous request for a web resource. Task that represents the asynchronous request. The stream is already in use by a previous call to . The source. Starts an asynchronous request for a object to use to write data. Task that represents the asynchronous request. The property is GET and the application writes to the stream. The stream is being used by a previous call to . No write stream is available. The source.