ClientWrapperSendQueryAsyncTResponse Method

SendQueryAsync sends a query to the GitHub GraphQL API. If the request fails it will check the response headers for the Retry-After header and wait that amount of seconds before retrying the request.

Definition

Namespace: spider.Wrappers
Assembly: spider (in spider.exe) Version: 1.0.0+fc7a1b35c0f8728ecbe7255d9fa5b4d3324ce3c6
C#
public Task<GraphQLResponse<TResponse>> SendQueryAsync<TResponse>(
	GraphQLHttpRequest? request
)

Parameters

request  GraphQLHttpRequest
The graphql request

Type Parameters

TResponse
The response type

Return Value

TaskGraphQLResponseTResponse
The response from the graphQL API in the form of GraphQLResponse<TResponse>

Implements

IClientWrapperSendQueryAsyncTResponse(GraphQLHttpRequest)

See Also