2021-08-07 07:26:09 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
2022-05-22 03:55:22 +02:00
|
|
|
|
using System.Threading.Tasks;
|
2021-08-07 07:26:09 +02:00
|
|
|
|
using Teknik.Configuration;
|
2022-05-28 20:00:15 +02:00
|
|
|
|
using Teknik.Utilities;
|
2021-08-07 07:26:09 +02:00
|
|
|
|
|
2021-08-12 03:44:15 +02:00
|
|
|
|
namespace Teknik.StorageService
|
2021-08-07 07:26:09 +02:00
|
|
|
|
{
|
|
|
|
|
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);
|
2022-05-28 20:00:15 +02:00
|
|
|
|
public Task SaveEncryptedFile(string fileName, Stream file, PooledArray key, PooledArray iv);
|
2021-08-07 07:26:09 +02:00
|
|
|
|
public void DeleteFile(string fileName);
|
|
|
|
|
}
|
|
|
|
|
}
|