Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 private Breakpoint AddCommandBreakpoint(CommandBreakpoint breakpoint)
 {
     this.AddBreakpointCommon(breakpoint);
     this._commandBreakpoints.Add(breakpoint);
     return(breakpoint);
 }
Exemplo n.º 3
0
 internal void RemoveCommandBreakpoint(CommandBreakpoint breakpoint)
 {
     this._commandBreakpoints.Remove(breakpoint);
 }
Exemplo n.º 4
0
 private Breakpoint AddCommandBreakpoint(CommandBreakpoint breakpoint)
 {
     this.AddBreakpointCommon(breakpoint);
     this._commandBreakpoints.Add(breakpoint);
     return breakpoint;
 }
Exemplo n.º 5
0
 internal void RemoveCommandBreakpoint(CommandBreakpoint breakpoint)
 {
     this._commandBreakpoints.Remove(breakpoint);
 }
Exemplo n.º 6
0
 internal void Remove(CommandBreakpoint breakpoint) => this.RemoveDictionaryBreakpoint <WildcardPattern>(this._commandBreakpoints, breakpoint.CommandPattern, (Breakpoint)breakpoint);