Class CsvRunner
- Namespace
- Hi.Numerical.FilePlayers
- Assembly
- HiNc.dll
Provides functionality for running and processing csv lines.
public class CsvRunner : IControlRunner
- Inheritance
-
CsvRunner
- Implements
- Inherited Members
- Extension Methods
Constructors
CsvRunner(LocalProjectService)
Initializes a new instance.
public CsvRunner(LocalProjectService localProjectService)
Parameters
localProjectServiceLocalProjectServiceThe local project service.
Properties
Config
Configuration for CSV Runner.
public CsvRunnerConfig Config { get; set; }
Property Value
Methods
Reset()
Reset runtime data, including the execution-order
Hi.Numerical.FilePlayers.CsvRunner.sentenceIndex counter. Called from
LocalProjectService.ResetRuntime only — session stop
(EndSession) deliberately does not reset the runner.
public void Reset()
RunControlLines(string, IEnumerable<string>, MachiningSession, SessionProgress, CancellationToken)
Runs raw Control lines and yields source sentence and Act pairs.
public IEnumerable<SourcedActEntry> RunControlLines(string relFilePath, IEnumerable<string> lines, MachiningSession machiningSession, SessionProgress sessionMessageHost, CancellationToken cancellationToken)
Parameters
relFilePathstringThe relative path of the control file
linesIEnumerable<string>The enumerable collection of command (control code) lines
machiningSessionMachiningSessionSession-scoped state shared across multiple RunControlLines(string, IEnumerable<string>, MachiningSession, SessionProgress, CancellationToken) calls (e.g. lazy-initialized pipeline state, file-index counter).
sessionMessageHostSessionProgresscancellationTokenCancellationTokenCancellation token to cancel the operation
Returns
- IEnumerable<SourcedActEntry>
Enumerable of source sentence and Act pairs