public void Execute(Context context) { if (context.IncrementRuleCount() > 500) { throw new ApplicationException(String.Format("Rule count exceeded 500 when running rule {0}", this.Name)); } Commands.Execute(context); } }