Example #1
0
        /// <inheritdoc />
        async Task <IDictionaryRange <string, Asset> > IRepository <string, Asset> .FindAllAsync(CancellationToken cancellationToken)
        {
            var request  = new FileBulkRequest();
            var response = await this.serviceClient.SendAsync <ICollection <FileDTO> >(request, cancellationToken).ConfigureAwait(false);

            return(this.bulkResponseConverter.Convert(response, null));
        }
Example #2
0
        /// <inheritdoc />
        Task <IDictionaryRange <string, Asset> > IRepository <string, Asset> .FindAllAsync(CancellationToken cancellationToken)
        {
            var request  = new FileBulkRequest();
            var response = this.serviceClient.SendAsync <ICollection <FileDataContract> >(request, cancellationToken);

            return(response.ContinueWith <IDictionaryRange <string, Asset> >(this.ConvertAsyncResponse, cancellationToken));
        }
Example #3
0
        /// <inheritdoc />
        IDictionaryRange <string, Asset> IRepository <string, Asset> .FindAll()
        {
            var request  = new FileBulkRequest();
            var response = this.serviceClient.Send <ICollection <FileDTO> >(request);

            return(this.bulkResponseConverter.Convert(response, null));
        }
Example #4
0
        /// <inheritdoc />
        IDictionaryRange <string, Asset> IRepository <string, Asset> .FindAll(ICollection <string> identifiers)
        {
            var request = new FileBulkRequest {
                Identifiers = identifiers
            };
            var response = this.serviceClient.Send <ICollection <FileDataContract> >(request);

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