public static bool Evaluate(TriggerPart triggerPart, string userAgent) { return(ComparisonOperatorHelper.Evaluate(triggerPart.Operator, triggerPart.IsNegative, triggerPart.IsIgnoreCase, userAgent ?? string.Empty, triggerPart.ValueToCompare, triggerPart.ValuesToCompare)); }
public static bool Evaluate(TriggerPart triggerPart, NameValueCollection httpHeaders) { return(ComparisonOperatorHelper.Evaluate(triggerPart.Operator, triggerPart.IsNegative, triggerPart.IsIgnoreCase, httpHeaders?.Get(triggerPart.HttpHeaderName) ?? string.Empty, triggerPart.ValueToCompare, triggerPart.ValuesToCompare)); }
public static bool Evaluate(TriggerPart triggerPart, IHttpRequest request) { return(ComparisonOperatorHelper.Evaluate(triggerPart.Operator, triggerPart.IsNegative, triggerPart.IsIgnoreCase, GetCookie(triggerPart.CookieName, request), triggerPart.ValueToCompare, triggerPart.ValuesToCompare)); }
public static bool Evaluate(TriggerPart triggerPart, string url) { return(ComparisonOperatorHelper.Evaluate( triggerPart.Operator, triggerPart.IsNegative, triggerPart.IsIgnoreCase, GetUrlPart(triggerPart, url), triggerPart.ValueToCompare, triggerPart.ValuesToCompare)); }