コード例 #1
0
        private async Task <QueryResult> GetNeuronsInternal(string outBaseUrl, string centralId, NeuronQuery neuronQuery, CancellationToken token = default(CancellationToken))
        {
            var path = string.IsNullOrEmpty(centralId) ?
                       HttpNeuronGraphQueryClient.GetNeuronsPathTemplate :
                       string.Format(HttpNeuronGraphQueryClient.GetRelativesPathTemplate, centralId);

            return(await HttpNeuronGraphQueryClient.GetNeuronsUnescaped(outBaseUrl, path, neuronQuery.ToString(), token, requestProvider));
        }
コード例 #2
0
 private async Task <QueryResult> GetNeuronByIdWithCentralInternal(string outBaseUrl, string id, string centralId, NeuronQuery neuronQuery, CancellationToken token = default(CancellationToken))
 {
     return(await HttpNeuronGraphQueryClient.GetNeuronsUnescaped(
                outBaseUrl,
                $"{HttpNeuronGraphQueryClient.GetNeuronsPathTemplate}/{centralId}/relatives/{id}",
                neuronQuery.ToString(),
                token,
                requestProvider
                ));
 }