public enum ItemCompairs : System.Enum
public enum ItemCompairs : System.Enum
Member | Description |
---|---|
ItemExists | The item exists |
ItemNotExists | The item not exists |
None | The not set |
ValueIsNotMatch | Value exists but the value does not match the projected value |
ValueMatches | The value matches |
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); } }
System.Object
System.ValueType
System.Enum
Walter.Web.FireWall.ItemCompairs
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2