WebExtensionPack.DataStore.HasBeenInstalled C# (CSharp) Method

HasBeenInstalled() public method

public HasBeenInstalled ( string productId ) : bool
productId string
return bool
        public bool HasBeenInstalled(string productId)
        {
            return PreviouslyInstalledExtensions.Contains(productId);
        }

Usage Example

Esempio n. 1
0
        private IEnumerable <KeyValuePair <string, string> > GetMissingExtensions(IVsExtensionManager manager, DataStore store)
        {
            var installed    = manager.GetInstalledExtensions();
            var products     = ExtensionList.Products();
            var notInstalled = products.Where(product => !installed.Any(ins => ins.Header.Identifier == product.Key)).ToArray();

            return(notInstalled.Where(ext => !store.HasBeenInstalled(ext.Key)));
        }
All Usage Examples Of WebExtensionPack.DataStore::HasBeenInstalled