Walter.Web.FireWall
ReportFormat Enumeration
Example Example 
Walter.Web.FireWall Assembly > Walter.Web.FireWall.Reporting Namespace : ReportFormat Enumeration
ReportFormat used when generating firewall reports
Syntax
public enum ReportFormat : System.Enum 
Members
MemberDescription
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
TextPlain return plain text
Example
using Walter.Web.FireWall;
             using Walter.Web.FireWall.Reporting;
             [ApiController]
             [Route("api/[controller]")]
             [Authorize]
             public class HealthController : Controller
             {
                 private readonly ILogger<HealthController> _logger;
                 private readonly IFireWall _fireWall;
            
                 public HealthController(ILogger<HealthController> logger, IFireWall fireWall)
                 {
                     _logger = logger;
                     _fireWall = fireWall;
                 }
            
                 [HttpGet]
                 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);
                  }
             }
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Walter.Web.FireWall.Reporting.ReportFormat

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

Walter.Web.FireWall.Reporting Namespace