Adding Async methods to verious services

This commit is contained in:
2026-01-29 15:55:25 -06:00
parent 2b42f287a8
commit 0dd597ee4e
5 changed files with 121 additions and 221 deletions

View File

@@ -1,15 +1,15 @@
using System.Security.Cryptography.X509Certificates;
using SzCore.DataObjects;
namespace SzCore;
public interface ISzFileManager
{
public string DataPath {get;}
public string DatasetsPath {get;}
public string TemplatesPath {get;}
string DataPath { get; }
string DatasetsPath { get; }
string TemplatesPath { get; }
public bool SaveFile(string path, string fileContent);
public string? LoadFile(string path);
public bool DeleteFile(string path);
}
bool SaveFile(string path, string fileContent);
string? LoadFile(string path);
bool DeleteFile(string path);
Task<bool> SaveFileAsync(string path, string fileContent, CancellationToken ct = default);
Task<string?> LoadFileAsync(string path, CancellationToken ct = default);
}