2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-07-01 08:23:42 -04:00

Rework Journal Handling

Stub ModulesInfo
This commit is contained in:
2024-04-21 17:10:45 +10:00
parent 4274496150
commit b8967814d5
14 changed files with 156 additions and 47 deletions

View File

@ -0,0 +1,23 @@
using Observatory.Framework.Files.Journal;
namespace Pulsar.Features;
/// <summary>
/// Interface for Handling Journal Files.
/// </summary>
public interface IJournalHandler : IFileHandler
{
string FileName { get; }
Task HandleFile(string filePath);
public bool ValidateFile(string filePath);
}
/// <summary>
/// Interface for Getting Journal Files.
/// Only used for Controllers
/// </summary>
public interface IJournalHandler<T> : IJournalHandler
where T: IJournal
{
Task<T> Get();
}