public IReadEntitiesByPathRequest FillReadEntitiesByPathGaps(IReadEntitiesByPathRequest userRequest)
        {
            IEntitySource newSource = this.EntitySourceMerger.FillEntitySourceGaps(userRequest.EntitySource);

            ISessionConfig mergedSessionConfig = this.SessionConfigMerger.FillSessionConfigGaps(userRequest.SessionSettings);

            ReadEntitiesByPathParameters newRequest = new ReadEntitiesByPathParameters(newSource, mergedSessionConfig, userRequest.ParametersRawValuesByName);

            return(newRequest);
        }
        public async Task <ScEntityResponse> ReadEntityAsync(IReadEntitiesByPathRequest request, CancellationToken cancelToken = default(CancellationToken))
        {
            IReadEntitiesByPathRequest requestCopy = request.DeepCopyReadEntitiesByPathRequest();

            //await this.GetPublicKeyAsync(cancelToken);
            IReadEntitiesByPathRequest autocompletedRequest = this.requestMerger.FillReadEntitiesByPathGaps(requestCopy);

            var urlBuilder = new GetEntitiesUrlBuilder <IReadEntitiesByPathRequest>(this.restGrammar, this.sscGrammar);
            var taskFlow   = new GetEntitiesByPathTask(urlBuilder, this.httpClient);

            return(await RestApiCallFlow.LoadRequestFromNetworkFlow(autocompletedRequest, taskFlow, cancelToken));
        }
Example #3
0
 public async Task <ScEntityResponse> ReadEntityAsync(IReadEntitiesByPathRequest request, CancellationToken cancelToken = default(CancellationToken))
 {
     return(await this.InvokeNoThrow(this.workerSession.ReadEntityAsync(request, cancelToken)));
 }