1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00
Teknik/StorageService/IStorageService.cs

19 lines
548 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.IO;
2022-05-22 03:55:22 +02:00
using System.Threading.Tasks;
using Teknik.Configuration;
2021-08-12 03:44:15 +02:00
namespace Teknik.StorageService
{
public interface IStorageService
{
public string GetUniqueFileName();
public Stream GetFile(string fileName);
public List<string> GetFileNames();
2022-05-22 03:55:22 +02:00
public Task SaveFile(string fileName, Stream file);
public Task SaveEncryptedFile(string fileName, Stream file, byte[] key, byte[] iv);
public void DeleteFile(string fileName);
}
}