Exemplo n.º 1
0
 private async Task <QueryResult <Neuron> > GetNeuronByIdInternal(string avatarUrl, string id, string centralId, NeuronQuery neuronQuery, string bearerToken, CancellationToken token = default(CancellationToken))
 {
     return(await HttpNeuronQueryClient.GetNeuronsUnescaped(
                avatarUrl,
                $"{HttpNeuronQueryClient.GetNeuronsPathTemplate}/{centralId}/relatives/{id}",
                neuronQuery.ToString(),
                token,
                requestProvider,
                bearerToken
                ));
 }
Exemplo n.º 2
0
        private async Task <QueryResult <Neuron> > GetNeuronsInternal(string avatarUrl, string centralId, NeuronQuery neuronQuery, string bearerToken, CancellationToken token = default(CancellationToken))
        {
            var path = string.IsNullOrEmpty(centralId) ?
                       HttpNeuronQueryClient.GetNeuronsPathTemplate :
                       string.Format(HttpNeuronQueryClient.GetRelativesPathTemplate, centralId);

            return(await HttpNeuronQueryClient.GetNeuronsUnescaped(
                       avatarUrl,
                       path,
                       neuronQuery.ToString(),
                       token,
                       requestProvider,
                       bearerToken
                       ));
        }