コード例 #1
0
        public async Task <byte[]> DownloadFileContentAsync(string fileFullName)
        {
            IFileStorageProvider provider = GetFileStorageProvider(fileFullName);

            if (provider == null)
            {
                throw new ArgumentException(nameof(provider) + " of the file storage service is null");
            }
            return(await provider
                   .DownloadFileAsync(fileFullName));
        }