Esempio n. 1
0
        /// <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));
        }
Esempio n. 2
0
        /// <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));
        }
Esempio n. 3
0
        /// <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));
        }
Esempio n. 4
0
        /// <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));
        }
Esempio n. 5
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));
        }
Esempio n. 6
0
        /// <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));
        }
Esempio n. 7
0
        /// <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));
        }