public void ResetCheckpoint(String name, Checkpoint cType) { if (!NamedCheckpoints.ContainsKey(name)) { return; } NamedCheckpoints[name].ResetCheckpoint(cType); }
public Int32 GetNextCheckpoint(String name, Checkpoint cType) { CheckpointSetContainer set = null; if (NamedCheckpoints.ContainsKey(name)) { set = NamedCheckpoints[name]; } else { set = new CheckpointSetContainer(); NamedCheckpoints.Add(name, set); } return(set.GetNextCheckpoint(cType)); }