Esempio n. 1
0
        /// <summary>
        /// Posts the specified request.
        /// </summary>
        /// <param name="request">The request.</param>
        public void Post(DownloadRemoteImage request)
        {
            var item = _libraryManager.GetItemById(request.Id);

            var task = DownloadRemoteImage(item, request);

            Task.WaitAll(task);
        }
Esempio n. 2
0
        /// <summary>
        /// Posts the specified request.
        /// </summary>
        /// <param name="request">The request.</param>
        public void Post(DownloadRemoteImage request)
        {
            var item = _dtoService.GetItemByDtoId(request.Id);

            var task = DownloadRemoteImage(item, request);

            Task.WaitAll(task);
        }
Esempio n. 3
0
        /// <summary>
        /// Posts the specified request.
        /// </summary>
        /// <param name="request">The request.</param>
        public Task Post(DownloadRemoteImage request)
        {
            var item = _libraryManager.GetItemById(request.Id);

            return(DownloadRemoteImage(item, request));
        }