HashAlgorithm.ComputeHashAsync(Stream, CancellationToken) Method
Definition
Asynchronously computes the hash value for the specified Stream object.
public System.Threading.Tasks.Task<byte[]> ComputeHashAsync (System.IO.Stream inputStream, System.Threading.CancellationToken cancellationToken = default);
member this.ComputeHashAsync : System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
Public Function ComputeHashAsync (inputStream As Stream, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Byte())
Parameters
- inputStream
- Stream
The input to compute the hash code for.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests.
Returns
A task that represents the asynchronous compute hash operation and wraps the computed hash code.