18
Webshop.Domain/Interfaces/IFileStorageService.cs
Normal file
18
Webshop.Domain/Interfaces/IFileStorageService.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
// src/Webshop.Domain/Interfaces/IFileStorageService.cs
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Webshop.Domain.Interfaces
|
||||
{
|
||||
public interface IFileStorageService
|
||||
{
|
||||
/// <summary>
|
||||
/// Speichert eine Datei und gibt die öffentlich zugängliche URL zurück.
|
||||
/// </summary>
|
||||
/// <param name="fileStream">Der Stream der Datei.</param>
|
||||
/// <param name="fileName">Der ursprüngliche Dateiname (zur Ermittlung der Erweiterung).</param>
|
||||
/// <param name="contentType">Der MIME-Typ der Datei.</param>
|
||||
/// <returns>Die öffentliche URL der gespeicherten Datei.</returns>
|
||||
Task<string> SaveFileAsync(Stream fileStream, string fileName, string contentType);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user