/// <inheritdoc /> async Task <IDictionaryRange <int, AggregateListing> > IRepository <int, AggregateListing> .FindAllAsync(CancellationToken cancellationToken) { var request = new AggregateListingBulkRequest(); var response = await this.serviceClient.SendAsync <ICollection <AggregateListingDTO> >(request, cancellationToken).ConfigureAwait(false); return(this.bulkResponseConverter.Convert(response, null)); }
/// <inheritdoc /> IDictionaryRange <int, AggregateListing> IRepository <int, AggregateListing> .FindAll() { var request = new AggregateListingBulkRequest(); var response = this.serviceClient.Send <ICollection <AggregateListingDTO> >(request); return(this.bulkResponseConverter.Convert(response, null)); }
/// <inheritdoc /> Task <IDictionaryRange <int, AggregateListing> > IRepository <int, AggregateListing> .FindAllAsync(CancellationToken cancellationToken) { var request = new AggregateListingBulkRequest(); var responseTask = this.serviceClient.SendAsync <ICollection <AggregateListingDataContract> >(request, cancellationToken); return(responseTask.ContinueWith <IDictionaryRange <int, AggregateListing> >(this.ConvertAsyncResponse, cancellationToken)); }
/// <inheritdoc /> IDictionaryRange <int, AggregateListing> IRepository <int, AggregateListing> .FindAll() { var request = new AggregateListingBulkRequest(); var response = this.serviceClient.Send <ICollection <AggregateListingDataContract> >(request); return(this.converterForBulkResponse.Convert(response, null) ?? new DictionaryRange <int, AggregateListing>(0)); }
/// <inheritdoc /> async Task <IDictionaryRange <int, AggregateListing> > IRepository <int, AggregateListing> .FindAllAsync(ICollection <int> identifiers, CancellationToken cancellationToken) { var request = new AggregateListingBulkRequest { Identifiers = identifiers.Select(i => i.ToString(NumberFormatInfo.InvariantInfo)).ToList() }; var response = await this.serviceClient.SendAsync <ICollection <AggregateListingDTO> >(request, cancellationToken).ConfigureAwait(false); return(this.bulkResponseConverter.Convert(response, null)); }
/// <inheritdoc /> IDictionaryRange <int, AggregateListing> IRepository <int, AggregateListing> .FindAll(ICollection <int> identifiers) { var request = new AggregateListingBulkRequest { Identifiers = identifiers.Select(i => i.ToString(NumberFormatInfo.InvariantInfo)).ToList() }; var response = this.serviceClient.Send <ICollection <AggregateListingDTO> >(request); return(this.bulkResponseConverter.Convert(response, null)); }
/// <inheritdoc /> Task <IDictionaryRange <int, AggregateListing> > IRepository <int, AggregateListing> .FindAllAsync(ICollection <int> identifiers, CancellationToken cancellationToken) { var request = new AggregateListingBulkRequest { Identifiers = identifiers.Select(i => i.ToString(NumberFormatInfo.InvariantInfo)).ToList() }; var responseTask = this.serviceClient.SendAsync <ICollection <AggregateListingDataContract> >(request, cancellationToken); return(responseTask.ContinueWith <IDictionaryRange <int, AggregateListing> >(this.ConvertAsyncResponse, cancellationToken)); }