/// <inheritdoc />
        Task <IDictionaryRange <string, Quaggan> > IRepository <string, Quaggan> .FindAllAsync(CancellationToken cancellationToken)
        {
            var request      = new QuagganBulkRequest();
            var responseTask = this.serviceClient.SendAsync <ICollection <QuagganDataContract> >(request, cancellationToken);

            return(responseTask.ContinueWith <IDictionaryRange <string, Quaggan> >(this.ConvertAsyncResponse, cancellationToken));
        }
        /// <inheritdoc />
        IDictionaryRange <string, Quaggan> IRepository <string, Quaggan> .FindAll()
        {
            var request  = new QuagganBulkRequest();
            var response = this.serviceClient.Send <ICollection <QuagganDataContract> >(request);

            return(this.converterForBulkResponse.Convert(response) ?? new DictionaryRange <string, Quaggan>(0));
        }
Example #3
0
        /// <inheritdoc />
        IDictionaryRange <string, Quaggan> IRepository <string, Quaggan> .FindAll()
        {
            var request  = new QuagganBulkRequest();
            var response = this.serviceClient.Send <ICollection <QuagganDTO> >(request);

            return(this.bulkResponseConverter.Convert(response, null));
        }
Example #4
0
        /// <inheritdoc />
        async Task <IDictionaryRange <string, Quaggan> > IRepository <string, Quaggan> .FindAllAsync(CancellationToken cancellationToken)
        {
            var request  = new QuagganBulkRequest();
            var response = await this.serviceClient.SendAsync <ICollection <QuagganDTO> >(request, cancellationToken).ConfigureAwait(false);

            return(this.bulkResponseConverter.Convert(response, null));
        }
Example #5
0
        /// <inheritdoc />
        IDictionaryRange <string, Quaggan> IRepository <string, Quaggan> .FindAll(ICollection <string> identifiers)
        {
            var request = new QuagganBulkRequest
            {
                Identifiers = identifiers.ToList()
            };
            var response = this.serviceClient.Send <ICollection <QuagganDataContract> >(request);

            return(this.converterForBulkResponse.Convert(response, null) ?? new DictionaryRange <string, Quaggan>(0));
        }