public sealed class HealthReportingData : FireWallReportingModel, IFireWallReportingModel
public sealed class HealthReportingData : FireWallReportingModel, IFireWallReportingModel
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/xml"; return _fireWall.Report(ReportTypes.DEFAULT, ReportFormat.HTML); } }
services.AddFireWall("your token", "your domain-key" , domainName: new Uri("https://www.YourDomain.dll", UriKind.Absolute), options => { options.Cypher.ApplicationPassword = "123456Seven"; options.ApplicationName = "Cosonto sales"; options.ApplicationTag = "WS3"; //personalized view located in ~/Views/Shared options.Reporting.HealthReportView = "_healthReport"; options.WebServices.IsUserApiUrl = new Uri(Links.IsUserEndpoint, UriKind.Relative); options.WebServices.RegisterLinksApiUrl = new Uri(Links.SiteMapEndPoint, UriKind.Relative); options.WebServices.BeaconApiUrl = new Uri(Links.BeaconPoint, UriKind.Relative); }).UseGeography(new System.IO.DirectoryInfo("D:\\MaxMind"));
services.AddControllersWithViews() .AddNewtonsoftJson(options=> options.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore );
System.Object
Walter.Web.FireWall.Reporting.FireWallReportingModel
Walter.Web.FireWall.Reporting.HealthReportingData
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