protected override MethodStubInfo CreateMethodStubInfo(TypeStubInfo typeInfo, LogicalMethodInfo methodInfo, bool isClientProxy) { if (isClientProxy && methodInfo.ActualMethodInfo.GetCustomAttributes(typeof(HttpMethodAttribute), true).Length == 0) { return(null); } if (!ValueCollectionParameterReader.IsSupported(methodInfo)) { return(null); } return(new HttpGetMethodStubInfo(typeInfo, methodInfo)); }
internal override bool ReflectParameters() { if (!ValueCollectionParameterReader.IsSupported(base.ReflectionContext.Method)) { return(false); } base.ReflectionContext.ReflectStringParametersMessage(); MimeContentBinding extension = new MimeContentBinding { Type = "application/x-www-form-urlencoded" }; base.ReflectionContext.OperationBinding.Input.Extensions.Add(extension); return(true); }