예제 #1
0
        public FileResultData GetCardImage(string cardFileId, string bucketId, string cardId, string imageId,
                                           CardImageSizeEnumContract imageSize)
        {
            try
            {
                var result = m_client.GetStream($"cardfile/{cardFileId}/bucket/{bucketId}/card/{cardId}/image/{imageId}?imageSize={imageSize}");
                return(result);
            }
            catch (HttpRequestException e)
            {
                if (m_logger.IsErrorEnabled())
                {
                    m_logger.LogError("{0} failed with {1}", m_client.GetCurrentMethod(), e);
                }

                throw;
            }
        }
예제 #2
0
 public FileResultData GetImage(string cardFileId, string bucketId, string cardId, string imageId, CardImageSizeEnumContract imageSize)
 {
     m_authorizationManager.CheckUserCanViewCardFile(cardFileId);
     return(m_cardFileClient.GetImageForCard(cardFileId, bucketId, cardId, imageId, imageSize.GetStringValue()));
 }