ProcessContext
Represents a thread-safe context for a IRunnable process to publish events. This class cannot be inherited.
Gets or sets input arguments.
Gets or sets a value indicating whether safe mode is enabled.
Occurs when the runnable process has been requested for cancellation.
Occurs when the runnable process non-fatal error is reported.
Occurs when the runnable process requests an export error file.
Occurs when the runnable process requests an export error report file.
Occurs when the runnable process requests the export server errors file.
Occurs when the runnable process throws a fatal exception.
Occurs when the runnable process has mapped a source field to a target field.
Occurs when the runnable process associated with a parent form is closing.
Occurs when the runnable process has completed.
Occurs when the runnable process has ended.
Occurs when the runnable process event takes place.
Occurs when the runnable process progress event takes place.
Occurs when the runnable process increments the record count.
Occurs when the runnable process has completed processing a single record.
Occurs when the runnable process is requested to show the error report.
Occurs when the runnable process has shutdown.
Occurs when a status bar change takes place.
public ProcessContext()
Initializes a new instance of the ProcessContext class.
public ProcessContext(IProcessEventWriter eventWriter, IProcessErrorWriter errorWriter, IAppSettings settings, ILog logger)
Initializes a new instance of the ProcessContext class.
Clears this instance and assigns null to all events.
Halts the runnable process with the specified process unique identifier. This assumes cancellation is requested by the user.
Halts the runnable process with the specified process unique identifier.
Publishes an event indicating the runnable process has handled a non-fatal error.
Publishes an event indicating the runnable process is reporting a non-fatal error.
Publishes an event indicating the runnable process requests an export error file.
Publishes an event indicating the runnable process requests an export error report file.
Publishes an event indicating the runnable process requests the export server errors file.
Publishes an event indicating the runnable process has handled a fatal exception.
Publishes an event indicating the runnable process has mapped a source field to a target field.
Publishes an event indicating the runnable process associated with a parent form is closing.
Publishes an event indicating the runnable process has completed. By default,
closeForm is false,
exportFilePath is Empty,
and exportLog is false.
Publishes an event indicating the runnable process has completed. By default,
exportFilePath is Empty
and exportLog is false.
Publishes an event indicating the runnable process has completed. By default,
exportLog is false.
Publishes an event indicating the runnable process has completed.
Publishes an event indicating the runnable process has ended.
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)
Publishes an event indicating the runnable process progress event has occurred.
public void PublishProgressInBytes(long totalBytes, long processedBytes, DateTime startTime, DateTime timestamp, Guid processId, string totalBytesDisplay, string processedBytesDisplay)
Publishes an event indicating the runnable process progress event has occurred.
Progress is measured in number of bytes.
Publishes an event indicating the runnable process record count has incremented.
Publishes an event indicating the runnable process has completed processing a single record.
Publishes an event indicating the runnable process has shutdown.
Publishes a status bar change event.
Publishes a status event.
Publishes a warning event.
Saves the output file to the specified file path.