示例#1
0
        public async Task <List <string> > FilesList()
        {
            try
            {
                ListVersionsResponse listVersionsResponse = await _awss3BucketHelper.FilesList();

                return(listVersionsResponse.Versions.Select(c => c.Key).ToList());
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }
        }
示例#2
0
        public async Task <List <string> > FilesList(string bucketName)
        {
            try
            {
                ListVersionsResponse listVersions = await _AWSS3BucketHelper.FilesList(bucketName);

                return(listVersions.Versions.Select(c => c.Key).ToList());
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }