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:
23
Pulsar/Features/Interfaces/IJournalHandler.cs
Normal file
23
Pulsar/Features/Interfaces/IJournalHandler.cs
Normal 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();
|
||||
}
|
Reference in New Issue
Block a user