public bool IsActive(DataSample data) { if (isVetoed = vetoRule.IsActive(data)) { Trace.WriteLineIf(!wasVetored, "{0}. Vetoing rule {1} with {2}".F(data.Telemetry.SessionTimeSpan, mainRule.Name, vetoRule.Name)); wasVetored = true; return(true); } return(mainRule.IsActive(data)); }
bool ActiveRule(IDirectionRule rule, DataSample data) { if (rule.IsActive(data)) { currentRule = rule; rule.Direct(data); return(true); } return(false); }
bool ActiveRule(IDirectionRule rule, DataSample data) { if (rule.IsActive(data)) { currentRule = rule; rule.Direct(data); return true; } return false; }