Пример #1
0
        /// <inheritdoc />
        async Task <IDictionaryRange <int, Skin> > IRepository <int, Skin> .FindAllAsync(CancellationToken cancellationToken)
        {
            var request = new SkinBulkRequest
            {
                Culture = ((ISkinRepository)this).Culture
            };
            var response = await this.serviceClient.SendAsync <ICollection <SkinDTO> >(request, cancellationToken).ConfigureAwait(false);

            return(this.bulkResponseConverter.Convert(response, null));
        }
Пример #2
0
        /// <inheritdoc />
        IDictionaryRange <int, Skin> IRepository <int, Skin> .FindAll()
        {
            var request = new SkinBulkRequest
            {
                Culture = ((ISkinRepository)this).Culture
            };
            var response = this.serviceClient.Send <ICollection <SkinDTO> >(request);

            return(this.bulkResponseConverter.Convert(response, null));
        }
Пример #3
0
        /// <inheritdoc />
        Task <IDictionaryRange <int, Skin> > IRepository <int, Skin> .FindAllAsync(CancellationToken cancellationToken)
        {
            var request = new SkinBulkRequest
            {
                Culture = ((ISkinRepository)this).Culture
            };
            var responseTask = this.serviceClient.SendAsync <ICollection <SkinDataContract> >(request, cancellationToken);

            return(responseTask.ContinueWith <IDictionaryRange <int, Skin> >(this.ConvertAsyncResponse, cancellationToken));
        }
Пример #4
0
        /// <inheritdoc />
        async Task <IDictionaryRange <int, Skin> > IRepository <int, Skin> .FindAllAsync(ICollection <int> identifiers, CancellationToken cancellationToken)
        {
            var request = new SkinBulkRequest
            {
                Identifiers = identifiers.Select(i => i.ToString(NumberFormatInfo.InvariantInfo)).ToList(),
                Culture     = ((ISkinRepository)this).Culture
            };
            var response = await this.serviceClient.SendAsync <ICollection <SkinDTO> >(request, cancellationToken).ConfigureAwait(false);

            return(this.bulkResponseConverter.Convert(response, null));
        }
Пример #5
0
        /// <inheritdoc />
        IDictionaryRange <int, Skin> IRepository <int, Skin> .FindAll(ICollection <int> identifiers)
        {
            var request = new SkinBulkRequest
            {
                Identifiers = identifiers.Select(i => i.ToString(NumberFormatInfo.InvariantInfo)).ToList(),
                Culture     = ((ISkinRepository)this).Culture
            };
            var response = this.serviceClient.Send <ICollection <SkinDTO> >(request);

            return(this.bulkResponseConverter.Convert(response, null));
        }
Пример #6
0
        /// <inheritdoc />
        Task <IDictionaryRange <int, Skin> > IRepository <int, Skin> .FindAllAsync(ICollection <int> identifiers, CancellationToken cancellationToken)
        {
            var request = new SkinBulkRequest
            {
                Identifiers = identifiers.Select(i => i.ToString(NumberFormatInfo.InvariantInfo)).ToList(),
                Culture     = ((ISkinRepository)this).Culture
            };
            var responseTask = this.serviceClient.SendAsync <ICollection <SkinDataContract> >(request, cancellationToken);

            return(responseTask.ContinueWith <IDictionaryRange <int, Skin> >(this.ConvertAsyncResponse, cancellationToken));
        }