WithRequest(string, Func<IDocument, IExecutionContext, TClient, Task<object>>) Method
Submits a request to the API. This allows you to incorporate data from the execution context and current document in your request.
Namespace
Statiq.Core
Containing Type
ReadApi<TClient>

Syntax

public ReadApi<TClient> WithRequest(string key, Func<IDocument, IExecutionContext, TClient, Task<object>> request)

Parameters

Name Type Description
key string The metadata key in which to store the return value of the request function.
request Func<IDocument, IExecutionContext, TClient, Task<object>> A function with the request to make.

Return Value

Type Description
ReadApi<TClient> The current module instance.