/// <summary> /// Executes the configured builder through the engine and returns a reference to the completed /// operation result to be inspected. This method executes the parsing and execution phases only. /// </summary> /// <param name="builder">The builder from which to generate the required query cotnext.</param> /// <returns>Task<System.String>.</returns> public async Task <IGraphOperationResult> ExecuteQuery(QueryContextBuilder builder) { var context = builder.Build(); await this.ExecuteQuery(context).ConfigureAwait(false); return(context.Result); }
/// <summary> /// Renders the provided operation request through the engine and generates a JSON string output. /// </summary> /// <param name="builder">The builder.</param> /// <returns>Task<System.String>.</returns> public async Task <string> RenderResult(QueryContextBuilder builder) { var result = await this.ExecuteQuery(builder).ConfigureAwait(false); return(await this.RenderResult(result).ConfigureAwait(false)); }