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
                ));
 }
Esempio n. 2
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
                ));
 }
Esempio n. 3
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
                       ));
        }
 private async Task <QueryResult> GetTerminalsInternal(string outBaseUrl, NeuronQuery neuronQuery, CancellationToken token = default(CancellationToken))
 {
     return(await requestProvider.GetAsync <QueryResult>(
                $"{outBaseUrl}{HttpNeuronGraphQueryClient.GetTerminalsPathTemplate}{neuronQuery.ToString()}",
                token : token
                ));
 }
Esempio n. 5
0
 private async Task <QueryResult <Terminal> > GetTerminalsInternal(string avatarUrl, NeuronQuery neuronQuery, string bearerToken, CancellationToken token = default(CancellationToken))
 {
     return(await requestProvider.GetAsync <QueryResult <Terminal> >(
                $"{avatarUrl}{HttpTerminalQueryClient.GetTerminalsPathTemplate}{neuronQuery.ToString()}",
                bearerToken,
                token
                ));
 }