namespace Pilz.Net.Api; public record class ApiAuthCheckEventArgs(string AuthKey) { private bool hasDenyed; public bool Valid { get; set; } public void Deny() { Valid = false; hasDenyed = true; } public void Permit() { if (!hasDenyed) Valid = true; } }