/// <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); }
/// <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); }
/// <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)); }