コード例 #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));
        }
コード例 #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));
        }
コード例 #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));
        }
コード例 #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));
        }
コード例 #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));
        }
コード例 #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));
        }
コード例 #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));
        }