Walter.BOM Namespace
Walter.Web.FireWall Namespace
ASP-WAF Web application firewall for .Net 6, .Net 5, .Net Standard 2.1 and .Net Core 3.x

FireWallBase Class

Class FireWallBase is the base class to use when creating your own instance of IFireWall by using this class as it's base class.

Namespace:  Walter.Web.FireWall
Assembly:  Walter.Web.FireWall (in Walter.Web.FireWall.dll)

Syntax


public abstract class FireWallBase : IFireWall

Remarks


If you create your own firewall class then you need to use this base class when configuring the services. You can't create your own implementation of the IFireWall interface and the register that with the dependency injection system.

You will find a more complete code sample on the constructor

Examples


The following sample assumes you created a custom instance named MyFireWall
C#
services.AddFireWall<MyFireWall>("Token", "Key", new Uri("https://www.site.com", UriKind.Absolute), options =>{
    //add your options here
});

Thread Safety


Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.