private static IEnumerable <Bundle> GetAllBundles() { if (RuntimeInfo.RunningOnWindows) { return(RegistryQuery.GetAllInstalledBundles()); } else if (RuntimeInfo.RunningOnOSX) { return(FileSystemExplorer.GetAllInstalledBundles()); } else { throw new OperatingSystemNotSupportedException(); } }
public static void Execute() { if (RuntimeInfo.RunningOnWindows) { Execute( RegistryQuery.GetAllInstalledBundles(), Windows.SupportedBundleTypeConfigs.SupportedBundleTypes); } else if (RuntimeInfo.RunningOnOSX) { Execute( FileSystemExplorer.GetAllInstalledBundles(), MacOs.SupportedBundleTypeConfigs.SupportedBundleTypes); } else { throw new OperatingSystemNotSupportedException(); } }