Example #1
0
        protected override RuleResult DoService(string notification)
        {
            RuleResult res = new RuleResult(GetType().Name);

            Count counter = new Count();
            counter.Command = "sp_countevents";

            res.AddEvidence(counter.Calculate().ToString());

            return res;
        }