Interface ISessionResettable
Marker for objects that hold session-scoped runtime state which must be
cleared when RunControlLines(string, IEnumerable<string>, MachiningSession, SessionProgress, CancellationToken) initializes a new
session pipeline (the state.IsInitialized == false edge).
Implementers may live on either chain: INcDependency or INcSyntax. SoftNcRunner scans NcDependencyList and NcSyntaxList on the session-init edge and calls OnSessionReset() on every match.
Distinct from IPowerResettable: power-reset clears
retained-but-volatile state on a controller power cycle (e.g., Fanuc
#100-#499), an edge that survives ordinary session boundaries.
Session-reset clears state whose lifetime is one pipeline pass (iteration
counters, file-index allocators, etc.).
public interface ISessionResettable
- Extension Methods
Methods
OnSessionReset()
Clears the session-scoped subset owned by this object. Called by RunControlLines(string, IEnumerable<string>, MachiningSession, SessionProgress, CancellationToken) on the same edge that rebuilds the syntax-piece pipeline so a runner reused across sessions does not leak counters / allocators / accumulators from the previous session.
void OnSessionReset()