/// <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)); }
/// <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)); }
/// <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)); }