public void ProcessParam(NameValueCollection queryParams, ParameterHandler parameterHandler) { if (parameterHandler.AppliesOnlyLocal && !ContextUtil.IsLocal) return; parameterHandler.Action(queryParams[parameterHandler.Name]); }
/// <summary> /// True if query string contains a parameter handled by a registered <see cref="ParameterHandler">ParamaterHandler</see>. /// </summary> /// <param name="queryParams"></param> /// <param name="parameterHandler"></param> /// <returns></returns> private bool DoesHandlerExist(NameValueCollection queryParams, ParameterHandler parameterHandler) { var value = queryParams.Get(parameterHandler.Name); return !string.IsNullOrEmpty(value); }
public void ProcessParam(ParameterHandler parameterHandler) { ProcessParam(_request.QueryString, parameterHandler); }
/// <summary> /// True if query string contains a parameter handled by a registered <see cref="ParameterHandler">ParamaterHandler</see>. /// </summary> /// <param name="parameterHandler"></param> /// <returns></returns> public bool DoesHandlerExist(ParameterHandler parameterHandler) { return DoesHandlerExist(_request.QueryString, parameterHandler); }