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); }
private Breakpoint AddCommandBreakpoint(CommandBreakpoint breakpoint) { this.AddBreakpointCommon(breakpoint); this._commandBreakpoints.Add(breakpoint); return(breakpoint); }
internal void RemoveCommandBreakpoint(CommandBreakpoint breakpoint) { this._commandBreakpoints.Remove(breakpoint); }
private Breakpoint AddCommandBreakpoint(CommandBreakpoint breakpoint) { this.AddBreakpointCommon(breakpoint); this._commandBreakpoints.Add(breakpoint); return breakpoint; }
internal void Remove(CommandBreakpoint breakpoint) => this.RemoveDictionaryBreakpoint <WildcardPattern>(this._commandBreakpoints, breakpoint.CommandPattern, (Breakpoint)breakpoint);