/// <inheritdoc /> Task <IDictionaryRange <int, Map> > IRepository <int, Map> .FindAllAsync(CancellationToken cancellationToken) { var request = new MapBulkRequest { Culture = ((IMapRepository)this).Culture }; var responseTask = this.serviceClient.SendAsync <ICollection <MapDataContract> >(request, cancellationToken); return(responseTask.ContinueWith <IDictionaryRange <int, Map> >(this.ConvertAsyncResponse, cancellationToken)); }
/// <inheritdoc /> IDictionaryRange <int, Map> IRepository <int, Map> .FindAll() { var request = new MapBulkRequest { Culture = ((IMapRepository)this).Culture }; var response = this.serviceClient.Send <ICollection <MapDataContract> >(request); return(this.bulkResponseConverter.Convert(response, null)); }
/// <inheritdoc /> async Task <IDictionaryRange <int, Map> > IRepository <int, Map> .FindAllAsync(CancellationToken cancellationToken) { var request = new MapBulkRequest { Culture = ((IMapRepository)this).Culture }; var response = await this.serviceClient.SendAsync <ICollection <MapDTO> >(request, cancellationToken).ConfigureAwait(false); return(this.bulkResponseConverter.Convert(response, null)); }
/// <inheritdoc /> Task <IDictionaryRange <int, Map> > IRepository <int, Map> .FindAllAsync(ICollection <int> identifiers, CancellationToken cancellationToken) { var request = new MapBulkRequest { Identifiers = identifiers.Select(i => i.ToString(NumberFormatInfo.InvariantInfo)).ToList(), Culture = ((IMapRepository)this).Culture }; var responseTask = this.serviceClient.SendAsync <ICollection <MapDataContract> >(request, cancellationToken); return(responseTask.ContinueWith <IDictionaryRange <int, Map> >(this.ConvertAsyncResponse, cancellationToken)); }
/// <inheritdoc /> IDictionaryRange <int, Map> IRepository <int, Map> .FindAll(ICollection <int> identifiers) { var request = new MapBulkRequest { Identifiers = identifiers.Select(i => i.ToString(NumberFormatInfo.InvariantInfo)).ToList(), Culture = ((IMapRepository)this).Culture }; var response = this.serviceClient.Send <ICollection <MapDataContract> >(request); return(this.bulkResponseConverter.Convert(response, null)); }
/// <inheritdoc /> async Task <IDictionaryRange <int, Map> > IRepository <int, Map> .FindAllAsync(ICollection <int> identifiers, CancellationToken cancellationToken) { var request = new MapBulkRequest { Identifiers = identifiers.Select(i => i.ToString(NumberFormatInfo.InvariantInfo)).ToList(), Culture = ((IMapRepository)this).Culture }; var response = await this.serviceClient.SendAsync <ICollection <MapDTO> >(request, cancellationToken).ConfigureAwait(false); return(this.bulkResponseConverter.Convert(response, null)); }