protected void SendErrorResponse(IRequest request, string message) { var body = new ErrorResult(new Message(-1, message)); SendMessage(new Response(request.Seq, request.Command, success: false, body: body)); }
public void SendErrorResult(int id, string format, bool showUser = true, bool sendTelemetry = false, string url = null, string urlLabel = null) { ErrorResult = new ErrorResult(new Message(id, format, showUser, sendTelemetry, url, urlLabel)); SendResponse(false, ErrorResult); }