예제 #1
0
        private static bool IsApiExplorerDisabled(DynamicApiControllerInfo dynamicApiControllerInfo)
        {
            if (dynamicApiControllerInfo.IsApiExplorerEnabled == false)
            {
                if (!RemoteServiceAttribute.IsMetadataExplicitlyEnabledFor(dynamicApiControllerInfo.ServiceInterfaceType))
                {
                    return(true);
                }
            }
            else
            {
                if (RemoteServiceAttribute.IsMetadataExplicitlyDisabledFor(dynamicApiControllerInfo.ServiceInterfaceType))
                {
                    return(true);
                }
            }

            return(false);
        }
예제 #2
0
        private static bool IsApiExplorerDisabled(DynamicApiActionInfo dynamicApiActionInfo)
        {
            if (dynamicApiActionInfo.IsApiExplorerEnabled == false)
            {
                if (!RemoteServiceAttribute.IsMetadataExplicitlyEnabledFor(dynamicApiActionInfo.Method))
                {
                    return(true);
                }
            }
            else
            {
                if (RemoteServiceAttribute.IsMetadataExplicitlyDisabledFor(dynamicApiActionInfo.Method))
                {
                    return(true);
                }
            }

            return(false);
        }