Example #1
0
        public async Task <string> GetMediaUrl(string fileName)
        {
            var media = await _mediaRepository.GetByFileName(fileName);

            var file = await _mediaStore.GetAsync(Path.Combine(media.RootDirectory, media.UniqueFileName));

            return(file.Path);
        }
Example #2
0
        public async Task <string> GetMediaUrl(string uniqueName)
        {
            var media = await _mediaRepository.FindByUniqueNameAsync(uniqueName);

            var file = await _store.GetAsync(media.ToString());

            return(file.Path);
        }
 public static ValueTask <IFileReference> GetAsync(this IAbpStore store, string path, bool withMetadata = false)
 {
     return(store.GetAsync(new PrivateFileReference(path), withMetadata));
 }
Example #4
0
 public ValueTask <IFileReference> GetAsync(Uri file, bool withMetadata)
 {
     return(_innerStore.GetAsync(file, withMetadata));
 }