ProgressEventArgs
Represents the progress event argument data. This class cannot be inherited.
using System;
using System.Collections;
namespace Relativity.DataExchange.Process
{
[Serializable]
public sealed class ProgressEventArgs : EventArgs
{
public enum UnitOfMeasurement
{
Records,
Bytes
}
public IDictionary Metadata { get; }
public double MetadataThroughput { get; }
public double NativeFileThroughput { get; }
public Guid ProcessId { get; }
public DateTime StartTime { get; }
public DateTime Timestamp { get; }
public long Total { get; }
public string TotalDisplay { get; }
public long Processed { get; }
public string ProcessedDisplay { get; }
public long ProcessedWithWarning { get; }
public long ProcessedWithError { get; }
public UnitOfMeasurement ProgressUnit { get; }
public ProgressEventArgs(Guid processId, IDictionary metadata, DateTime startTime, DateTime timestamp, long total, string totalDisplay, long processed, string processedDisplay, long processedWithWarning, long processedWithError, double metadataThroughput, double nativeFileThroughput, UnitOfMeasurement progressUnit)
{
ProcessId = processId;
Metadata = metadata;
StartTime = startTime;
Timestamp = timestamp;
Total = total;
TotalDisplay = ((!string.IsNullOrEmpty(totalDisplay)) ? totalDisplay : total.ToString());
Processed = processed;
ProcessedDisplay = ((!string.IsNullOrEmpty(processedDisplay)) ? processedDisplay : processed.ToString());
ProcessedWithError = processedWithError;
ProcessedWithWarning = processedWithWarning;
MetadataThroughput = metadataThroughput;
NativeFileThroughput = nativeFileThroughput;
ProgressUnit = progressUnit;
}
}
}