Walter.Web.FireWall
BlockDurationAttribute Constructor
Walter.Web.FireWall Assembly > Walter.Web.FireWall.Annotations Namespace > BlockDurationAttribute Class : BlockDurationAttribute Constructor
The duration in seconds (must be positive).
Indicates that the blocking duration is sliding default = true
If true the duration for the blocking will double each time a request is made and the user was blocked default is true
Initializes a new instance of the BlockDurationAttribute class.
Syntax
public BlockDurationAttribute( 
   int seconds,
   bool sliding,
   bool doubleDurationPerIncident
)

Parameters

seconds
The duration in seconds (must be positive).
sliding
Indicates that the blocking duration is sliding default = true
doubleDurationPerIncident
If true the duration for the blocking will double each time a request is made and the user was blocked default is true
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

BlockDurationAttribute Class
BlockDurationAttribute Members
View the IPageRequest.ViolationsStack to access all violations on the page including those raised by this filter