Walter.Web.FireWall
OnEndpointsCreated Event
Example 
Walter.Web.FireWall Assembly > Walter.Web.FireWall Namespace > IFireWallConfig Interface : OnEndpointsCreated Event
Update the firewall's endpoint definitions at runtime before the first resource is served.
Syntax
event EventHandler<EndpointsCreatedEventArgs> OnEndpointsCreated
Event Data

The event handler receives an argument of type EndpointsCreatedEventArgs containing data related to this event. The following EndpointsCreatedEventArgs properties provide information specific to this event.

PropertyDescription
Gets the fire wall configuration.  
Gets the endpoints discovered by the firewall.  
Remarks
This method is called as soon as the firewall's endpoints are loaded and before the firewall has finished loading state data.
Example
The bellow sample shows how all items in the downloads folder, as well as all *.zip and *.pdf files can be accessed externally from links in external websites or links embedded in documents without invoking a AddHockFileAccess violation by the firewall.
options.OnEndpointsCreated+=(links)=>  {
   foreach (var item in links.EndpointsInPath("Download/*"
            ,"*.zip"
            , "*.pdf" ))
   {
       item.AllowAddhockAccess = 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