internal Breakpoint NewCommandBreakpoint(string command, ScriptBlock action)
        {
            ++this._numBreakpoints;
            WildcardPattern   wildcardPattern   = new WildcardPattern(command, WildcardOptions.Compiled | WildcardOptions.IgnoreCase);
            CommandBreakpoint commandBreakpoint = new CommandBreakpoint(this._context, this._scriptPath, wildcardPattern, command, action);

            this.AddBreakpoint <WildcardPattern>(this._commandBreakpoints, wildcardPattern, (Breakpoint)commandBreakpoint);
            return((Breakpoint)commandBreakpoint);
        }
Esempio n. 2
0
 private Breakpoint AddCommandBreakpoint(CommandBreakpoint breakpoint)
 {
     this.AddBreakpointCommon(breakpoint);
     this._commandBreakpoints.Add(breakpoint);
     return(breakpoint);
 }
Esempio n. 3
0
 internal void RemoveCommandBreakpoint(CommandBreakpoint breakpoint)
 {
     this._commandBreakpoints.Remove(breakpoint);
 }
Esempio n. 4
0
 private Breakpoint AddCommandBreakpoint(CommandBreakpoint breakpoint)
 {
     this.AddBreakpointCommon(breakpoint);
     this._commandBreakpoints.Add(breakpoint);
     return breakpoint;
 }
Esempio n. 5
0
 internal void RemoveCommandBreakpoint(CommandBreakpoint breakpoint)
 {
     this._commandBreakpoints.Remove(breakpoint);
 }
 internal void Remove(CommandBreakpoint breakpoint) => this.RemoveDictionaryBreakpoint <WildcardPattern>(this._commandBreakpoints, breakpoint.CommandPattern, (Breakpoint)breakpoint);