Example #1
0
        /// <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));
        }
Example #2
0
        /// <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));
        }
Example #3
0
        /// <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));
        }
Example #4
0
        /// <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));
        }
Example #5
0
        /// <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));
        }
Example #6
0
        /// <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));
        }