ItemCompairs Enumeration
Enum ItemCompairs tests how an item compares to it's dictionary value
Namespace:
Walter.Web.FireWallAssembly: Walter.Web.FireWall (in Walter.Web.FireWall.dll)
Examples
C#
public class HealthController : Controller { IPageRequest _page; IFireWall _fireWall; public HealthController(IPageRequest page) { _page = page; _fireWall = page.FireWall; } [HttpGet] [Produces("text/plain")] public string Index() { if (_page.TryHasHeader(_fireWall.Configuration.UseHeaderNames[HeaderName.UserEncryptionSalt], _page.User.GetUserSalt(), out var headerOk) && headerOk.HasFlag(ItemCompairs.ValueMatches)) { return _fireWall.Report(ReportTypes.ALL); } return _fireWall.Report(ReportTypes.DEFAULT); } }