Beispiel #1
0
        protected override void teardown()
        {
            var messages = _nodes.LoggedEvents().ToArray();
            var table    = new TableTag();

            table.AddClasses("table", "table-striped");
            table.AddHeaderRow(_ =>
            {
                _.Header("Node");
                _.Header("Subject");
                _.Header("Type");
                _.Header("Message");
            });

            messages.Each(message =>
            {
                table.AddBodyRow(_ =>
                {
                    _.Cell(message.NodeId);
                    _.Cell(message.Subject.ToString());
                    _.Cell(message.GetType().Name);
                    _.Cell(message.ToString());
                });
            });


            Context.Reporting.Log("Monitored Node Group", table.ToString());

            _nodes.AddLogs(Context);

            _nodes.Dispose();
        }