Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nickwalkmsft committed Aug 22, 2017
1 parent 7c01a7b commit 1da6408
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions Kudu.Services/Diagnostics/LinuxProcessController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,77 +11,76 @@ namespace Kudu.Services.Performance

public class LinuxProcessController : ApiController
{
private const HttpStatusCode RETURNCODE = HttpStatusCode.BadRequest;
private const string ERRORMSG = "Not supported on Linux";

[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", Justification = "Parameters preserved for equivalent route binding")]
[HttpGet]
public HttpResponseMessage GetThread(int processId, int threadId)
{
return Request.CreateErrorResponse(RETURNCODE, ERRORMSG);
return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ERRORMSG);
}

[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", Justification = "Parameters preserved for equivalent route binding")]
[HttpGet]
public HttpResponseMessage GetAllThreads(int id)
{
return Request.CreateErrorResponse(RETURNCODE, ERRORMSG);
return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ERRORMSG);
}

[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", Justification = "Parameters preserved for equivalent route binding")]
[HttpGet]
public HttpResponseMessage GetModule(int id, string baseAddress)
{
return Request.CreateErrorResponse(RETURNCODE, ERRORMSG);
return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ERRORMSG);
}

[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", Justification = "Parameters preserved for equivalent route binding")]
[HttpGet]
public HttpResponseMessage GetAllModules(int id)
{
return Request.CreateErrorResponse(RETURNCODE, ERRORMSG);
return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ERRORMSG);
}

[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", Justification = "Parameters preserved for equivalent route binding")]
[HttpGet]
public HttpResponseMessage GetAllProcesses(bool allUsers = false)
{
return Request.CreateErrorResponse(RETURNCODE, ERRORMSG);
return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ERRORMSG);
}

[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", Justification = "Parameters preserved for equivalent route binding")]
[HttpGet]
public HttpResponseMessage GetProcess(int id)
{
return Request.CreateErrorResponse(RETURNCODE, ERRORMSG);
return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ERRORMSG);
}

[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", Justification = "Parameters preserved for equivalent route binding")]
[HttpDelete]
public HttpResponseMessage KillProcess(int id)
{
return Request.CreateErrorResponse(RETURNCODE, ERRORMSG);
return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ERRORMSG);
}

[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", Justification = "Parameters preserved for equivalent route binding")]
[HttpGet]
public HttpResponseMessage MiniDump(int id, int dumpType = 0, string format = null)
{
return Request.CreateErrorResponse(RETURNCODE, ERRORMSG);
return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ERRORMSG);
}

[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", Justification = "Parameters preserved for equivalent route binding")]
[HttpPost]
public HttpResponseMessage StartProfileAsync(int id, bool iisProfiling = false)
{
return Request.CreateErrorResponse(RETURNCODE, ERRORMSG);
return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ERRORMSG);
}

[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", Justification = "Parameters preserved for equivalent route binding")]
[HttpGet]
public HttpResponseMessage StopProfileAsync(int id)
{
return Request.CreateErrorResponse(RETURNCODE, ERRORMSG);
return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ERRORMSG);
}
}
}

0 comments on commit 1da6408

Please sign in to comment.