ReadApi(Config<TClient>, bool, string) Constructor
Creates a connection to the API using the client factory.
Namespace
Statiq.Core
Containing Type
ReadApi<TClient>

Syntax

public ReadApi(Config<TClient> clientFactory, bool shouldDisposeClient, string clientName = "API")

Parameters

Name Type Description
clientFactory Config<TClient> The API client factory to use which will be called for each document.
shouldDisposeClient bool true to dispose the client returned by the factory after each document.
clientName string The client name ("API" by default).