Exemplo n.º 1
0
        /// <summary>
        /// 获取文件信息
        /// </summary>
        /// <param name="ossETagIcon"></param>
        /// <returns></returns>
        public static OSSObject GetInfo(this IOssETagFile ossETagIcon)
        {
            var ossManager = IocManager.Instance.Resolve <OSSManage>();

            return(ossManager.GetOSSObject(ossETagIcon.ETag, ossETagIcon.BucketName));
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取图片的缩略图的URL
        /// </summary>
        /// <param name="ossETagIcon"></param>
        /// <returns></returns>
        public static string GetThumbnail(this IOssETagFile ossETagIcon)
        {
            var ossManager = IocManager.Instance.Resolve <OSSManage>();

            return(ossManager.GetThumbnail(ossETagIcon.ETag, ossETagIcon.BucketName));
        }