<PackageReference Include="Relativity.Server.Import.SDK" Version="2.9.2" />

Relativity.DataExchange.Process.ProcessContext

public sealed class ProcessContext
Represents a thread-safe context for a IRunnable process to publish events. This class cannot be inherited.
namespace Relativity.DataExchange.Process { public sealed class ProcessContext { public object InputArgs { get; set; } public bool SafeMode { get; set; } public event EventHandler<CancellationRequestEventArgs> CancellationRequest; public event EventHandler<ErrorReportEventArgs> ErrorReport; public event EventHandler<ExportErrorEventArgs> ExportServerErrors; public event EventHandler<ExportErrorEventArgs> ExportErrorReport; public event EventHandler<ExportErrorEventArgs> ExportErrorFile; public event EventHandler<FatalExceptionEventArgs> FatalException; public event EventHandler<FieldMappedEventArgs> FieldMapped; public event EventHandler<ParentFormClosingEventArgs> ParentFormClosing; public event EventHandler<ProcessCompleteEventArgs> ProcessCompleted; public event EventHandler<ProcessEndEventArgs> ProcessEnded; public event EventHandler<ProcessEventArgs> ProcessEvent; public event EventHandler<ProgressEventArgs> Progress; public event EventHandler<RecordCountEventArgs> RecordCountIncremented; public event EventHandler<RecordNumberEventArgs> RecordProcessed; public event EventHandler<ShowReportEventArgs> ShowReportEvent; public event EventHandler<EventArgs> Shutdown; public event EventHandler<StatusBarEventArgs> StatusBarChanged; public ProcessContext(); public ProcessContext(IProcessEventWriter eventWriter, IProcessErrorWriter errorWriter, IAppSettings settings, ILog logger); public void Clear(); public void PublishCancellationRequest(Guid processId); public void PublishCancellationRequest(Guid processId, bool requestByUser); public void PublishErrorEvent(string recordInfo, string message); public void PublishErrorReport(IDictionary error); public void PublishExportErrorFile(string file); public void PublishExportErrorReport(string file); public void PublishExportServerErrors(string file); public void PublishFieldMapped(string sourceField, string targetField); public void PublishFatalException(Exception exception); public void PublishParentFormClosing(Guid processId); public void PublishProcessCompleted(); public void PublishProcessCompleted(bool closeForm); public void PublishProcessCompleted(bool closeForm, string exportFilePath); public void PublishProcessCompleted(bool closeForm, string exportFilePath, bool exportLog); public void PublishProcessEnded(long nativeFileBytes, long metadataBytes, double sqlProcessRate); public void PublishProgress(long totalRecords, long totalProcessedRecords, long totalProcessedWarningRecords, long totalProcessedErrorRecords, DateTime startTime, DateTime timestamp, double metadataThroughput, double nativeFileThroughput, Guid processId, string totalRecordsDisplay = null, string totalProcessedRecordsDisplay = null, IDictionary metadata = null); public void PublishProgressInBytes(long totalBytes, long processedBytes, DateTime startTime, DateTime timestamp, Guid processId, string totalBytesDisplay, string processedBytesDisplay); public void PublishRecordCountIncremented(); public void PublishRecordProcessed(long recordNumber); public void PublishShutdown(); public void PublishStatusBarChanged(string message, string popupText); public void PublishStatusEvent(string recordInfo, string message); public void SaveOutputFile(string file); public void PublishWarningEvent(string recordInfo, string message); } }