Walter.BOM Namespace
Walter.Web.FireWall Namespace
ASP-WAF | .Net API for WAF Systems

ReportFormat Enumeration

ReportFormat used when generating firewall reports

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


public enum ReportFormat


Member nameDescription
TextPlain return plain text
Json return json formatted text
Native generate native object is used internally and can't be passed to the report engine, if you do you will get json back


using Walter.Web.FireWall;
   using Walter.Web.FireWall.Reporting;
   public class HealthController : Controller
       private readonly ILogger<HealthController> _logger;
       private readonly IFireWall _fireWall;

       public HealthController(ILogger<HealthController> logger, IFireWall fireWall)
           _logger = logger;
           _fireWall = fireWall;

       public string Get()
          _logger?.Lazy().LogDebug("Call firewall heath report. Heath status:\n {status}",   _fireWall.Report(ReportTypes.DEFAULT));
          Response.ContentType = "application/json";
          return _fireWall.Report(ReportTypes.DEFAULT, ReportFormat.Json);