1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00
Teknik/StorageService/StorageService.cs
2022-05-28 11:00:15 -07:00

27 lines
812 B
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using Teknik.Configuration;
using Teknik.Utilities;
namespace Teknik.StorageService
{
public abstract class StorageService : IStorageService
{
protected readonly StorageConfig _config;
public StorageService(StorageConfig config)
{
_config = config;
}
public abstract string GetUniqueFileName();
public abstract Stream GetFile(string fileName);
public abstract List<string> GetFileNames();
public abstract Task SaveFile(string fileName, Stream file);
public abstract Task SaveEncryptedFile(string fileName, Stream file, PooledArray key, PooledArray iv);
public abstract void DeleteFile(string fileName);
}
}