public SSCAN(Key key, Cursor cursor, Match match, ScanCount count) { this.key = key; this.cursor = cursor; this.match = match; this.count = count; }
public void WriteContextInfo() { Text.Line(); Text.DarkMagentaLine("--------------------------------------------------------------------------------".PadLeft(80)); Text.Line(); Text.White("Execution Chain: " + "\n\t"); Chain.ForEach(e => { Text.CliCommand(e.CommandText, false); Text.White(" -> "); }); Text.Line(); Text.Line(); Text.White($@"Scans since reset: "); if (ScanCount > 0) { Text.GreenLine(ScanCount.ToString()); } else { Text.YellowLine(ScanCount.ToString()); } Text.Line(); Text.White($"Execute an "); Text.FriendlyText("input"); Text.White(" or an "); Text.FriendlyText("output"); Text.White(" using the "); Text.CliCommand("exec"); Text.WhiteLine(" command."); Text.Line(); }
private void setCount(long id, Dictionary <long, ScanCount> scanCount) { if (scanCount.ContainsKey(id)) { ScanCount sc = scanCount[id]; sc.count++; scanCount[id] = sc; } else { ScanCount sc = new ScanCount(); sc.count = 1; scanCount.Add(id, sc); } }
public SCAN(Cursor cursor, ScanCount count) : this(cursor, Match.All, count) { }
public SCAN(Cursor cursor, Match match, ScanCount count) { this.cursor = cursor; this.match = match; this.count = count; }
public SSCAN(Key key, Cursor cursor, ScanCount count) : this(key, cursor, Match.All, count) { }