///-------------------------------------------------------------------------------- /// <summary>This method breakpoints.</summary> /// /// <param name="sender">Sender of the event.</param> /// <param name="args">Event arguments.</param> ///-------------------------------------------------------------------------------- protected void OnOutputBreakpointReached(object sender, SolutionDebugEventArgs args) { if (OutputBreakpointReached != null) { OutputBreakpointReached(this, args); } }
///-------------------------------------------------------------------------------- /// <summary>Handle breakpoint.</summary> /// /// <param name="interpreterType">The type of interpretation to perform.</param> /// <param name="modelContext">The associated model context.</param> /// <param name="lineNumber">The associated line number.</param> ///-------------------------------------------------------------------------------- public void HandleBreakpoint(InterpreterTypeCode interpreterType, IDomainEnterpriseObject modelContext, int lineNumber) { SolutionDebugEventArgs args = new SolutionDebugEventArgs(); args.InterpreterType = interpreterType; args.Solution = Solution; args.TemplateContext = SpecTemplate; args.ModelContext = modelContext; args.LineNumber = lineNumber; if (interpreterType == InterpreterTypeCode.Content) { OnContentBreakpointReached(this, args); } else if (interpreterType == InterpreterTypeCode.Output) { OnOutputBreakpointReached(this, args); } }