<PackageReference Include="Microsoft.Azure.Storage.Blob" Version="11.1.4" />

Microsoft.Azure.Storage.Blob.SubStream

sealed class SubStream : Stream
A wrapper class that creates a logical substream from a region within an existing seekable stream. Allows for concurrent, asynchronous read and seek operations on the wrapped stream. Ensures thread-safe operations between related substream instances via a shared, user-supplied synchronization mutex. This class will buffer read requests to minimize overhead on the underlying stream.
namespace Microsoft.Azure.Storage.Blob { internal sealed class SubStream : Stream { public SemaphoreSlim Mutex { get; set; } public int ReadBufferSize { get; set; } public SubStream(Stream stream, long streamBeginIndex, long substreamLength, SemaphoreSlim globalSemaphore); } }