RynthCore/tools/HookResolver.Core/Validation/IValidationRule.cs
Tom Bohar 68c301dac8 RynthCore as of 2026-09-05 (internal f9abab9)
A snapshot of the working tree for aelrynth.com/git/: the code, build files
and public docs. Internal review notes and agent instructions are left out.
MIT licensed; see LICENSE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 21:22:59 -04:00

18 lines
495 B
C#

using RynthCore.HookManifest.Scanning;
using RynthCore.HookResolver.Core.Symbols;
namespace RynthCore.HookResolver.Core.Validation;
public readonly record struct ValidationContext(
AcClientImageView Image,
int CandidateRva,
int CandidateVa,
HookSymbol Symbol);
public readonly record struct ValidationOutcome(bool Passed, string RuleId, string Detail);
public interface IValidationRule
{
string RuleId { get; }
ValidationOutcome Evaluate(in ValidationContext ctx);
}