Table of Contents

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(PacePlayer, LocalProjectService, SessionMessageHost)

Initializes a new instance.

public CsvRunner(PacePlayer pacePlayer, LocalProjectService localProjectService, SessionMessageHost sessionMessageHost)

Parameters

pacePlayer PacePlayer

The pace player for controlling playback.

localProjectService LocalProjectService

The local project service.

sessionMessageHost SessionMessageHost

The session message host for logging.

Properties

Config

Configuration for CSV Runner.

public CsvRunnerConfig Config { get; set; }

Property Value

CsvRunnerConfig

PacePlayer

Gets the pace player for controlling playback.

public PacePlayer PacePlayer { get; }

Property Value

PacePlayer

SessionMessageHost

External Hosted.

public SessionMessageHost SessionMessageHost { get; set; }

Property Value

SessionMessageHost

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 string

The relative path of the control file

lines IEnumerable<string>

The enumerable collection of command (control code) lines

cancellationToken CancellationToken

Cancellation 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()