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); }
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); }