Interface IFileStorageProvider
- Namespace
- Raytha.Application.Common.Interfaces
- Assembly
- Raytha.Application.dll
public interface IFileStorageProvider
Methods
DeleteAsync(string)
Task DeleteAsync(string key)
Parameters
key
string
Returns
- Task
GetDownloadUrlAsync(string)
Task<string> GetDownloadUrlAsync(string key)
Parameters
key
string
Returns
- Task<string>
GetDownloadUrlAsync(string, DateTime, bool)
Task<string> GetDownloadUrlAsync(string key, DateTime expiresAt, bool inline = true)
Parameters
key
string
expiresAt
DateTime
inline
bool
Returns
- Task<string>
GetName()
Returns
- string
GetUploadUrlAsync(string, string, string, DateTime, bool)
Task<string> GetUploadUrlAsync(string key, string fileName, string contentType, DateTime expiresAt, bool inline = true)
Parameters
key
string
fileName
string
contentType
string
expiresAt
DateTime
inline
bool
Returns
- Task<string>
SaveAndGetDownloadUrlAsync(byte[], string, string, string, DateTime, bool)
Task<string> SaveAndGetDownloadUrlAsync(byte[] data, string key, string fileName, string contentType, DateTime expiresAt, bool inline = true)
Parameters
data
byte[]
key
string
fileName
string
contentType
string
expiresAt
DateTime
inline
bool
Returns
- Task<string>