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