示例#1
0
        /// <summary>
        /// Gets the specified request.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns>System.Object.</returns>
        public object Head(GetItemImage request)
        {
            var item = string.IsNullOrEmpty(request.Id) ?
                       _libraryManager.RootFolder :
                       _libraryManager.GetItemById(request.Id);

            return(GetImage(request, item, true));
        }
示例#2
0
        /// <summary>
        /// Gets the specified request.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns>System.Object.</returns>
        public object Get(GetItemImage request)
        {
            var item = string.IsNullOrEmpty(request.Id) ?
                       _libraryManager.RootFolder :
                       _libraryManager.GetItemById(request.Id);

            if (!string.IsNullOrEmpty(request.Params))
            {
                ParseOptions(request, request.Params);
            }

            return(GetImage(request, item));
        }
示例#3
0
 /// <summary>
 /// Gets the specified request.
 /// </summary>
 /// <param name="request">The request.</param>
 /// <returns>System.Object.</returns>
 public object Head(GetItemImage request)
 {
     return(GetImage(request, request.Id, null, true));
 }
示例#4
0
 /// <summary>
 /// Gets the specified request.
 /// </summary>
 /// <param name="request">The request.</param>
 /// <returns>System.Object.</returns>
 public object Get(GetItemImage request)
 {
     return(GetImage(request, request.Id, null, false));
 }
示例#5
0
        /// <summary>
        /// Gets the specified request.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns>System.Object.</returns>
        public object Get(GetItemImage request)
        {
            var item = string.IsNullOrEmpty(request.Id) ? _libraryManager.RootFolder : _dtoService.GetItemByDtoId(request.Id);

            return(GetImage(request, item));
        }
示例#6
0
        /// <summary>
        /// Gets the specified request.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns>System.Object.</returns>
        public object Get(GetItemImage request)
        {
            var item = string.IsNullOrEmpty(request.Id) ? _libraryManager.RootFolder : DtoBuilder.GetItemByClientId(request.Id, _userManager, _libraryManager);

            return GetImage(request, item);
        }
示例#7
0
        /// <summary>
        /// Gets the specified request.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns>System.Object.</returns>
        public object Get(GetItemImage request)
        {
            var item = DtoBuilder.GetItemByClientId(request.Id, _userManager, _libraryManager);

            return(GetImage(request, item));
        }