Class ApizrProgressEventArgs
- Namespace
- Apizr.Progressing
- Assembly
- Apizr.Integrations.FileTransfer.dll
Provides data for the events generated by ApizrProgressHandler.
public class ApizrProgressEventArgs : ProgressChangedEventArgs
- Inheritance
-
ApizrProgressEventArgs
- Inherited Members
Constructors
ApizrProgressEventArgs(HttpRequestMessage, ApizrProgressType, int, object, long, long?)
Initializes a new instance of the ApizrProgressEventArgs with the parameters given.
public ApizrProgressEventArgs(HttpRequestMessage request, ApizrProgressType progressType, int progressPercentage, object userToken, long bytesTransferred, long? totalBytes)
Parameters
requestHttpRequestMessageThe request
progressTypeApizrProgressTypeType of progress (request or response)
progressPercentageintThe percent completed of the overall exchange.
userTokenobjectAny user state provided as part of reading or writing the data.
bytesTransferredlongThe current number of bytes either received or sent.
totalByteslong?The total number of bytes expected to be received or sent.
Properties
BytesTransferred
Gets the current number of bytes transferred.
public long BytesTransferred { get; }
Property Value
ProgressType
Gets the type of progress
public ApizrProgressType ProgressType { get; }
Property Value
Request
Gets the request
public HttpRequestMessage Request { get; }
Property Value
TotalBytes
Gets the total number of expected bytes to be sent or received. If the number is not known then this is null.
public long? TotalBytes { get; }
Property Value
- long?