public CodeIssuesModule(CodeIssuesHandler codeIssuesHandler) { Post["GetCodeIssues", "/getcodeissues"] = x => { var req = this.Bind<Request>(); var res = codeIssuesHandler.GetCodeIssues(req); return Response.AsJson(res); }; Post["FixCodeIssue", "/fixcodeissue"] = x => { var req = this.Bind<RunCodeActionRequest>(); var res = codeIssuesHandler.FixCodeIssue(req); return Response.AsJson(res); }; }
public CodeIssuesModule(CodeIssuesHandler codeIssuesHandler) { Post["/getcodeissues"] = x => { var req = this.Bind <Request>(); var res = codeIssuesHandler.GetCodeIssues(req); return(Response.AsJson(res)); }; Post["/fixcodeissue"] = x => { var req = this.Bind <RunCodeActionRequest>(); var res = codeIssuesHandler.FixCodeIssue(req); return(Response.AsJson(res)); }; }
public CodeCheckHandler(SyntaxErrorsHandler syntaxErrorsHandler, CodeIssuesHandler codeIssuesHandler, SemanticErrorsHandler semanticErrorsHandler) { _semanticErrorsHandler = semanticErrorsHandler; _codeIssuesHandler = codeIssuesHandler; _syntaxErrorsHandler = syntaxErrorsHandler; }