Ejemplo n.º 1
0
        static internal Type GetOperationContractProviderType(MethodInfo method)
        {
            if (GetSingleAttribute <OperationContractAttribute>(method) != null)
            {
                return(s_OperationContractAttributeType);
            }
            IOperationContractAttributeProvider provider = GetFirstAttribute <IOperationContractAttributeProvider>(method);

            if (provider != null)
            {
                return(provider.GetType());
            }
            return(null);
        }
        internal static Type GetOperationContractProviderType(MethodInfo method)
        {
            if (GetSingleAttribute <OperationContractAttribute>(method) != null)
            {
                return(OperationContractAttributeType);
            }
            IOperationContractAttributeProvider firstAttribute = GetFirstAttribute <IOperationContractAttributeProvider>(method);

            if (firstAttribute != null)
            {
                return(firstAttribute.GetType());
            }
            return(null);
        }
Ejemplo n.º 3
0
        internal static OperationContractAttribute GetOperationContractAttribute(MethodInfo method)
        {
            OperationContractAttribute operationContractAttribute = GetSingleAttribute <OperationContractAttribute>(method);

            if (operationContractAttribute != null)
            {
                return(operationContractAttribute);
            }
            IOperationContractAttributeProvider operationContractProvider = GetFirstAttribute <IOperationContractAttributeProvider>(method);

            if (operationContractProvider != null)
            {
                return(operationContractProvider.GetOperationContractAttribute());
            }
            return(null);
        }