public async Task <QueryResult <Terminal> > GetTerminals(NeuronQuery neuronQuery, string userId, CancellationToken token = default(CancellationToken)) { var commonResult = await this.graphQueryClient.GetTerminals( this.settingsService.CortexGraphOutBaseUrl + "/", neuronQuery.ToExternalType(), token ); return(await TerminalQueryService.ConvertProcessValidate( commonResult, userId, validationClient, settingsService, token )); }
public async Task <QueryResult <Neuron> > GetNeurons(NeuronQuery neuronQuery, string userId, CancellationToken token = default(CancellationToken)) { var commonResult = await this.graphQueryClient.GetNeurons( this.settingsService.CortexGraphOutBaseUrl + "/", neuronQuery.ToExternalType(), token ); var result = commonResult.ToInternalType(n => n.ToInternalType()); result.Items = await result.Items.ProcessValidate( userId, this.validationClient, this.settingsService, token ); return(result); }