Walter.Web.FireWall
ItemCompairs Enumeration
Example Example 
Walter.Web.FireWall Assembly > Walter.Web.FireWall Namespace : ItemCompairs Enumeration
Enum ItemCompairs tests how an item compares to it's dictionary value
Syntax
public enum ItemCompairs : System.Enum 
Members
MemberDescription
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
Example
The following example looks at the page header and tests if the header contains the user salt key
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);
                 }
             }
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Walter.Web.FireWall.ItemCompairs

Requirements

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

See Also

Reference

Walter.Web.FireWall Namespace
ItemCompairs Enumeration