public ShortCircuitResult ShortCircuit(ExperimentSummary experimentSummary, string userId) { var cookie = Context.Request.Cookies["ABsoluteMaybe-ShortCircuit"]; return cookie != null && cookie.Values.AllKeys.Contains(experimentSummary.Name) ? new ShortCircuitResult(true, cookie.Values[experimentSummary.Name]) : ShortCircuitResult.False; }
public ShortCircuitResult ShortCircuit(ExperimentSummary experimentSummary, string userId) { return experimentSummary.HasEnded ? new ShortCircuitResult(true, experimentSummary.AlwaysUseOption) : ShortCircuitResult.False; }
public ShortCircuitResult ShortCircuit(ExperimentSummary experimentSummary, string userId) { return Context.Request.QueryString.AllKeys.Contains(experimentSummary.Name) ? new ShortCircuitResult(true, Context.Request.QueryString[experimentSummary.Name]) : ShortCircuitResult.False; }