public ProgressStream(Stream stream) : base(stream) { try { this.length = stream.Length; } catch (NotSupportedException) { } }