Show / Hide Table of Contents

Class AbpStreamExtensions

Inheritance
object
AbpStreamExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: System.IO
Assembly: Volo.Abp.Core.dll
Syntax
public static class AbpStreamExtensions

Methods

CopyToAsync(Stream, Stream, CancellationToken)

Declaration
public static Task CopyToAsync(this Stream stream, Stream destination, CancellationToken cancellationToken)
Parameters
Type Name Description
Stream stream
Stream destination
CancellationToken cancellationToken
Returns
Type Description
Task

CreateMemoryStream(Stream)

Declaration
public static MemoryStream CreateMemoryStream(this Stream stream)
Parameters
Type Name Description
Stream stream
Returns
Type Description
MemoryStream

CreateMemoryStreamAsync(Stream, CancellationToken)

Declaration
public static Task<MemoryStream> CreateMemoryStreamAsync(this Stream stream, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Stream stream
CancellationToken cancellationToken
Returns
Type Description
Task<MemoryStream>

GetAllBytes(Stream)

Declaration
public static byte[] GetAllBytes(this Stream stream)
Parameters
Type Name Description
Stream stream
Returns
Type Description
byte[]

GetAllBytesAsync(Stream, CancellationToken)

Declaration
public static Task<byte[]> GetAllBytesAsync(this Stream stream, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Stream stream
CancellationToken cancellationToken
Returns
Type Description
Task<byte[]>
In this article
Back to top Powered by Volosoft