Refactored Indexer models

This commit is contained in:
2025-08-31 00:11:05 +02:00
parent 8a3be8dd90
commit 2a75daee07
16 changed files with 591 additions and 591 deletions

View File

@@ -0,0 +1,20 @@
using Microsoft.Extensions.Diagnostics.HealthChecks;
public class CallConfig
{
public required string Type { get; set; }
public long? Interval { get; set; } // For Type: Interval
public string? Path { get; set; } // For Type: FileSystemWatcher
public string? Schedule { get; set; } // For Type: Schedule
}
public interface ICall
{
public HealthCheckResult HealthCheck();
public void Start();
public void Stop();
public bool IsEnabled { get; set; }
public bool IsExecuting { get; set; }
public CallConfig CallConfig { get; set; }
public DateTime? LastExecution { get; set; }
public DateTime? LastSuccessfulExecution { get; set; }
}