16 lines
482 B
C#
16 lines
482 B
C#
namespace GmRelay.Web.Services.Portfolio.Covers;
|
|
|
|
public sealed record PortfolioCoverUploadResult(string StorageKey, string ContentType);
|
|
|
|
public interface IPortfolioCoverStorage
|
|
{
|
|
Task<PortfolioCoverUploadResult> SaveAsync(
|
|
Stream content,
|
|
string contentType,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
Task DeleteIfExistsAsync(string storageKey, CancellationToken cancellationToken = default);
|
|
|
|
string GetPublicPath(string storageKey);
|
|
}
|