Class CsvRunner
- Namespace
- Hi.Numerical.FilePlayers
- Assembly
- HiNc.dll
public class CsvRunner : IControlRunner
- Inheritance
-
CsvRunner
- Implements
- Inherited Members
- Extension Methods
Constructors
CsvRunner(PacePlayer, SessionMessageHost)
public CsvRunner(PacePlayer pacePlayer, SessionMessageHost sessionMessageHost)
Parameters
pacePlayer
PacePlayersessionMessageHost
SessionMessageHost
Properties
Config
Configuration for CSV Runner.
public CsvRunnerConfig Config { get; set; }
Property Value
PacePlayer
public PacePlayer PacePlayer { get; }
Property Value
SessionMessageHost
External Hosted.
public SessionMessageHost SessionMessageHost { get; set; }
Property Value
Methods
Reset()
Reset runtime data.
public void Reset()
ResetFileIndex()
Resets the file index to zero.
public void ResetFileIndex()
RunControlLines(string, IEnumerable<string>, CancellationToken)
Runs raw Control lines and yields source control line and Act pairs.
public IEnumerable<SourceCommandActEntry> RunControlLines(string relFilePath, IEnumerable<string> lines, CancellationToken cancellationToken)
Parameters
relFilePath
stringThe relative path of the control file
lines
IEnumerable<string>The enumerable collection of command (control code) lines
cancellationToken
CancellationTokenCancellation token to cancel the operation
Returns
- IEnumerable<SourceCommandActEntry>
Enumerable of source control line and Act pairs
RunToLineEnd()
Set EnumerablePlayer before use the function.
public void RunToLineEnd()