Пример #1
0
        private bool SafeguardHasVaultCredentials(Addon addon)
        {
            var accountsPushedToSpp = false;

            var assetId = _configDb.AssetId;

            if (assetId != null && assetId > 0)
            {
                var addonAccounts = addon.VaultCredentials;
                var accounts      = _safeguardLogic.GetAssetAccounts(null, assetId.Value).ToArray();
                if (accounts.Any())
                {
                    accountsPushedToSpp = accounts.All(x => addonAccounts.ContainsKey(x.Name));
                }
            }

            return(accountsPushedToSpp);
        }