event EventHandler<RulesCreatedEventArgs> OnRulesCreated
Event Data
The event handler receives an argument of type RulesCreatedEventArgs containing data related to this event. The following RulesCreatedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Rules | The rules populated with the defaults or the values bound from IConfiguration |
Example
The following code show how to update the pattern to allow access to the default .net default membership path "/Identity/Account/"
services.AddFireWall(FireWallTrial.License, FireWallTrial.DomainKey , domainName: new Uri("https://www.your-domain.com", UriKind.Absolute) , options =>{ options.OnRulesCreated+=(sender, rules)=> { rules.BlockedPatterns.NoPublicAccessToAdministration.Remove("/Identity/Account/") }; });
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