コード例 #1
0
        public virtual async Task <OssObjectDto> GetAsync(GetOssObjectInput input)
        {
            var oss = CreateOssContainer();

            var ossObject = await oss.GetObjectAsync(input.Bucket, input.Object, input.Path);

            return(ObjectMapper.Map <OssObject, OssObjectDto>(ossObject));
        }
コード例 #2
0
 public virtual async Task <OssObjectDto> GetAsync(GetOssObjectInput input)
 {
     return(await OssObjectAppService.GetAsync(input));
 }
コード例 #3
0
 public virtual async Task DeleteAsync(GetOssObjectInput input)
 {
     await OssObjectAppService.DeleteAsync(input);
 }
コード例 #4
0
        public virtual async Task DeleteAsync(GetOssObjectInput input)
        {
            var oss = CreateOssContainer();

            await oss.DeleteObjectAsync(input.Bucket, input.Object, input.Path);
        }