/// <inheritdoc /> Quaggan IRepository <string, Quaggan> .Find(string identifier) { var request = new QuagganDetailsRequest { Identifier = identifier }; var response = this.serviceClient.Send <QuagganDTO>(request); return(this.responseConverter.Convert(response, null)); }
/// <inheritdoc /> Quaggan IRepository <string, Quaggan> .Find(string identifier) { var request = new QuagganDetailsRequest { Identifier = identifier }; var response = this.serviceClient.Send <QuagganDataContract>(request); return(this.converterForResponse.Convert(response)); }
/// <inheritdoc /> Task <Quaggan> IRepository <string, Quaggan> .FindAsync(string identifier, CancellationToken cancellationToken) { var request = new QuagganDetailsRequest { Identifier = identifier }; var responseTask = this.serviceClient.SendAsync <QuagganDataContract>(request, cancellationToken); return(responseTask.ContinueWith <Quaggan>(this.ConvertAsyncResponse, cancellationToken)); }
/// <inheritdoc /> async Task <Quaggan> IRepository <string, Quaggan> .FindAsync(string identifier, CancellationToken cancellationToken) { var request = new QuagganDetailsRequest { Identifier = identifier }; var response = await this.serviceClient.SendAsync <QuagganDTO>(request, cancellationToken).ConfigureAwait(false); return(this.responseConverter.Convert(response, null)); }