public override object[] GetCustomAttributes(Type attributeType, bool inherit) { //NOTE: Do we have to take 'inherit' parameter into account here somehow? if (attributeType == typeof(OperationContractAttribute)) { var operationContract = SyncMethod.GetAttribute <OperationContractAttribute>(); operationContract.AsyncPattern = true; return(new[] { operationContract }); } if (typeof(IOperationBehavior).IsAssignableFrom(attributeType) || attributeType == typeof(ServiceKnownTypeAttribute) || attributeType == typeof(FaultContractAttribute)) { return(new object[0]); } return(SyncMethod.GetCustomAttributes(attributeType, inherit)); }
public override object[] GetCustomAttributes(bool inherit) { return(SyncMethod.GetCustomAttributes(inherit)); }