<PackageReference Include="Azure.Storage.Blobs" Version="12.25.0" />

StreamExtensions

static class StreamExtensions
using System; using System.IO; namespace Azure.Storage.Shared { internal static class StreamExtensions { public static long? GetPositionOrDefault(this Stream content) { if (content == null) return 0; try { if (content.CanSeek) return content.Position; } catch (NotSupportedException) { } return null; } } }