public enum ReportFormat : System.Enum
public enum ReportFormat : System.Enum
Member | Description |
---|---|
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 |
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); } }
System.Object
System.ValueType
System.Enum
Walter.Web.FireWall.Reporting.ReportFormat
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