private bool EvaluateTriggerPart(TriggerPart triggerPart, string currentPageUrl, HttpCookieCollection cookieCollection) { switch (triggerPart.ValidatorType) { case ValidatorType.UrlValidator: return(UrlValidatorHelper.Evaluate(triggerPart, currentPageUrl)); case ValidatorType.CookieValidator: return(CookieValidatorHelper.Evaluate(triggerPart, cookieCollection)); default: return(false); } }