public static bool Evaluate(TriggerPart triggerPart, System.Web.HttpCookieCollection cookieCollection)
 {
     return(ComparisonOperatorHelper.Evaluate(triggerPart.Operator,
                                              triggerPart.IsNegative,
                                              triggerPart.IsIgnoreCase,
                                              GetCookie(triggerPart.CookieName, cookieCollection),
                                              triggerPart.ValueToCompare));
 }
Beispiel #2
0
 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));
 }
Beispiel #3
0
 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, string url)
 {
     return(ComparisonOperatorHelper.Evaluate(
                triggerPart.Operator,
                triggerPart.IsNegative,
                triggerPart.IsIgnoreCase,
                GetUrlPart(triggerPart, url),
                triggerPart.ValueToCompare));
 }
 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));
 }