/// <inheritdoc cref="CompileSandbox.GetResponse"/> /// <summary> /// Gets the standard response including the test result. /// </summary> private CompileTestSourceResponse GetResponse(CompileSourceResponse baseResponse) { var testResult = this.GetTestCaseResponse(baseResponse.StandardOutput, baseResponse.StandardErrorOutput); var singleTestResponse = CompileTestSourceResponse.FromSandboxCompileResponse(baseResponse, testResult); return(singleTestResponse); }
/// <summary> /// Publishes a response to a compile request. /// </summary> /// <param name="response">The response that has been compiled.</param> public async Task PublishCompileSourceResponse(CompileSourceResponse response) { await this._producer.PublishAsync("compiled", JsonConvert.SerializeObject(response)); }