Example #1
0
 public SSCAN(Key key, Cursor cursor, Match match, ScanCount count)
 {
     this.key    = key;
     this.cursor = cursor;
     this.match  = match;
     this.count  = count;
 }
Example #2
0
        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();
        }
Example #3
0
 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);
     }
 }
Example #4
0
 public SCAN(Cursor cursor, ScanCount count)
     : this(cursor, Match.All, count)
 {
 }
Example #5
0
 public SCAN(Cursor cursor, Match match, ScanCount count)
 {
     this.cursor = cursor;
     this.match  = match;
     this.count  = count;
 }
Example #6
0
 public SSCAN(Key key, Cursor cursor, ScanCount count)
     : this(key, cursor, Match.All, count)
 {
 }