Walter.Web.FireWall
Page Property (GuardActionEventArgs)
Example 
Walter.Web.FireWall Assembly > Walter.Web.FireWall.EventArguments Namespace > GuardActionEventArgs Class : Page Property
The Page that triggered the action
Syntax
public IPageRequest Page {get;}
Remarks
Interesting in this context is the data collected in the ViolationsStack as it contains a stack-trace like list of violations in this page
Example
You can use the firewall to test your rules before taking the firewall into production by recording all blocking events
private void MyFireWall_OnGuardAction(object? sender, Walter.Web.FireWall.EventArguments.GuardActionEventArgs e)
            {
                e.AllowGuardAction = false;
                _logger?.Lazy().LogCritical("{Method} {page} : {route}\n\t{action}:{RuleNr}\n\tReasons:{Reason}\n\t{data}"
                    , e.Page.Method
                    , e.Page.OriginalUrl.AbsolutePath
                    , e.Page.FireWallRoute
                    , e.Action
                    , string.Join("\n\t\t", e.Page.ViolationsStack.Select(s => s.ToString()))
                    );
            }
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

GuardActionEventArgs Class
GuardActionEventArgs Members
ViolationsStack Property
RootPage Property