Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }