Class ProgressStreamReport
Contains the pertinent data for a ProgressStream Report event.
Inheritance
System.Object
ProgressStreamReport
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Dapplo.HttpExtensions.Support
Assembly: Dapplo.HttpExtensions.dll
Syntax
public class ProgressStreamReport
Constructors
| Improve this Doc View SourceProgressStreamReport()
Default constructor for ProgressStreamReport.
Declaration
public ProgressStreamReport()
ProgressStreamReport(Int32, Int64, Int64, Boolean)
Creates a new ProgressStreamReport initializing its members.
Declaration
public ProgressStreamReport(int bytesMoved, long streamLength, long streamPosition, bool wasRead)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | bytesMoved | The number of bytes that were read/written to/from the stream. |
System.Int64 | streamLength | The total length of the stream in bytes. |
System.Int64 | streamPosition | The current position in the stream. |
System.Boolean | wasRead | True if the bytes were read from the stream, false if they were written. |
Properties
| Improve this Doc View SourceBytesMoved
The number of bytes that were read/written to/from the stream.
Declaration
public int BytesMoved { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
StreamLength
The total length of the stream in bytes, 0 if the stream isn't seekable
Declaration
public long StreamLength { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
StreamPosition
The current position in the stream, 0 if the stream isn't seekable
Declaration
public long StreamPosition { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
WasRead
True if the bytes were read from the stream, false if they were written.
Declaration
public bool WasRead { get; }
Property Value
Type | Description |
---|---|
System.Boolean |