Beispiel #1
0
        /// <inheritdoc />
        AggregateListing IRepository <int, AggregateListing> .Find(int identifier)
        {
            var request = new AggregateListingDetailsRequest
            {
                Identifier = identifier.ToString(NumberFormatInfo.InvariantInfo)
            };
            var response = this.serviceClient.Send <AggregateListingDTO>(request);

            return(this.responseConverter.Convert(response, null));
        }
Beispiel #2
0
        /// <inheritdoc />
        async Task <AggregateListing> IRepository <int, AggregateListing> .FindAsync(int identifier, CancellationToken cancellationToken)
        {
            var request = new AggregateListingDetailsRequest
            {
                Identifier = identifier.ToString(NumberFormatInfo.InvariantInfo)
            };
            var response = await this.serviceClient.SendAsync <AggregateListingDTO>(request, cancellationToken).ConfigureAwait(false);

            return(this.responseConverter.Convert(response, null));
        }
Beispiel #3
0
        /// <inheritdoc />
        Task <AggregateListing> IRepository <int, AggregateListing> .FindAsync(int identifier, CancellationToken cancellationToken)
        {
            var request = new AggregateListingDetailsRequest
            {
                Identifier = identifier.ToString(NumberFormatInfo.InvariantInfo)
            };
            var responseTask = this.serviceClient.SendAsync <AggregateListingDataContract>(request, cancellationToken);

            return(responseTask.ContinueWith <AggregateListing>(this.ConvertAsyncResponse, cancellationToken));
        }