public override object GetInitializer(LogicalMethodInfo methodInfo, SoapExtensionAttribute attribute) { YMLAttribute attr = attribute as YMLAttribute; if (attr != null) { return(attr.Disabled); } return(false); }
public override void ReflectMethod() { ProtocolReflector reflector = ReflectionContext; YMLAttribute attr = (YMLAttribute)reflector.Method.GetCustomAttribute( typeof(YMLAttribute)); // If the YMLAttribute has been applied to this XML Web service // method, add the XML defined in the YMLOperationBinding class. if (attr != null) { YMLOperationBinding yml = new YMLOperationBinding(); yml.Reverse = !(attr.Disabled); reflector.OperationBinding.Extensions.Add(yml); } }