using System.Net; namespace SimpleHttpServer.Types; [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, Inherited = true, AllowMultiple = true)] public abstract class BaseEndpointCheckAttribute : Attribute { public BaseEndpointCheckAttribute() { } /// /// Executed when the endpoint is invoked. The endpoint invocation is skipped if any of the checks fail. /// /// True to allow invocation, false to prevent. public abstract bool Check(HttpListenerRequest req); }