public async Task <ScItemsResponse> RunSearchAsync(ISitecoreSearchRequest request, CancellationToken cancelToken = default(CancellationToken)) { ISitecoreSearchRequest requestCopy = request.DeepCopySitecoreSearchRequest(); await this.GetPublicKeyAsync(cancelToken); ISitecoreSearchRequest autocompletedRequest = this.requestMerger.FillSitecoreSearchGaps(requestCopy); var urlBuilder = new RunSitecoreSearchUrlBuilder(this.restGrammar, this.sscGrammar); var taskFlow = new RunSitecoreSearchTasks(urlBuilder, this.httpClient); return(await RestApiCallFlow.LoadRequestFromNetworkFlow(autocompletedRequest, taskFlow, cancelToken)); }
public RunSitecoreSearchTasks(RunSitecoreSearchUrlBuilder urlBuilder, HttpClient httpClient) : base(httpClient) { this.urlBuilder = urlBuilder; }