mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
refactor: implement unified startup validator architecture with IStartupValidator interface
This commit is contained in:
19
octo-fiesta/Services/Validation/IStartupValidator.cs
Normal file
19
octo-fiesta/Services/Validation/IStartupValidator.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace octo_fiesta.Services.Validation;
|
||||
|
||||
/// <summary>
|
||||
/// Interface for service startup validators
|
||||
/// </summary>
|
||||
public interface IStartupValidator
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the name of the service being validated
|
||||
/// </summary>
|
||||
string ServiceName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Validates the service configuration and connectivity
|
||||
/// </summary>
|
||||
/// <param name="cancellationToken">Cancellation token</param>
|
||||
/// <returns>Validation result containing status and details</returns>
|
||||
Task<ValidationResult> ValidateAsync(CancellationToken cancellationToken);
|
||||
}
|
||||
Reference in New Issue
Block a user