Skip to content

StreamToTextAsync Method ​

Definition ​

  • Namespace: JASE.Extensions
  • Assembly: JASE.Primitives.dll

Overloads ​

NameDescription
Task<string> StreamToTextAsync(Stream stream, CancellationToken cancellationToken = null)Asynchronously returns the stream content as a string.
Task<string> StreamToTextAsync(Stream stream, Encoding encoding, CancellationToken cancellationToken = null)Asynchronously returns the stream content as a string using the specified encoding.

Task<string> StreamToTextAsync(Stream stream, Encoding encoding, CancellationToken cancellationToken = null) ​

csharp
Task<string> StreamToTextAsync(Stream stream, Encoding encoding, CancellationToken cancellationToken = null)

Asynchronously returns the stream content as a string using the specified encoding.

Task<string> StreamToTextAsync(Stream stream, CancellationToken cancellationToken = null) ​

csharp
Task<string> StreamToTextAsync(Stream stream, CancellationToken cancellationToken = null)

Asynchronously returns the stream content as a string.