The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

StorageService.cs 756B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using Teknik.Configuration;
  5. namespace StorageService
  6. {
  7. public abstract class StorageService : IStorageService
  8. {
  9. protected readonly StorageConfig _config;
  10. public StorageService(StorageConfig config)
  11. {
  12. _config = config;
  13. }
  14. public abstract string GetUniqueFileName();
  15. public abstract Stream GetFile(string fileName);
  16. public abstract List<string> GetFileNames();
  17. public abstract void SaveFile(string fileName, Stream file);
  18. public abstract void SaveEncryptedFile(string fileName, Stream file, int chunkSize, byte[] key, byte[] iv);
  19. public abstract void DeleteFile(string fileName);
  20. }
  21. }