private bool IsEnabled(MethodParameter parameter) { if (parameter.IsPagingParameter) { return(false); } return(parameter.GetAttributeValue("enabled", NamespaceUri, true)); }
private FilterFunctions GetFilterFunctions(MethodParameter parameter) { if (parameter == null) { return(DefaultFilterFunctions); } FilterFunctions defaultValue = GetDefaultFilterFunctions(parameter.Method); return(parameter.GetAttributeValue("filterFunctions", NamespaceUri, defaultValue)); }
private string GetMethodParameterName(MethodParameter parameter) { string name = parameter.GetAttributeValue("parameterNameFormat", NamespaceUri, (string)null); if (!string.IsNullOrEmpty(name)) { return(name); } string format = GetMethodParameterNameFormat(parameter.Method); return(string.Format(format, parameter.Name)); }
private FilterFunctions GetFilterFunctions(MethodParameter parameter) { if (parameter == null) return DefaultFilterFunctions; FilterFunctions defaultValue = GetDefaultFilterFunctions(parameter.Method); return parameter.GetAttributeValue("filterFunctions", NamespaceUri, defaultValue); }
private bool IsEnabled(MethodParameter parameter) { if (parameter.IsPagingParameter) return false; return parameter.GetAttributeValue("enabled", NamespaceUri, true); }
private string GetMethodParameterName(MethodParameter parameter) { string name = parameter.GetAttributeValue("parameterNameFormat", NamespaceUri, (string)null); if (!string.IsNullOrEmpty(name)) return name; string format = GetMethodParameterNameFormat(parameter.Method); return string.Format(format, parameter.Name); }