public Task <SqlQueryResponse> QueryAsync(Action <SqlQueryRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new SqlQueryRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequestAsync <SqlQueryRequestDescriptor, SqlQueryResponse>(descriptor)); }
public SqlQueryResponse Query(Action <SqlQueryRequestDescriptor> configureRequest = null) { var descriptor = new SqlQueryRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <SqlQueryRequestDescriptor, SqlQueryResponse>(descriptor)); }