public static IReadOnlyDictionary <string, CloudStorageAccount> GetAccounts()
        {
            Dictionary <string, CloudStorageAccount> accounts = new Dictionary <string, CloudStorageAccount>();

            IReadOnlyDictionary <string, string> connectionStrings = ConnectionStringProvider.GetConnectionStrings();

            foreach (KeyValuePair <string, string> item in connectionStrings)
            {
                CloudStorageAccount account;

                if (CloudStorageAccount.TryParse(item.Value, out account))
                {
                    accounts.Add(item.Key, account);
                }
            }

            return(accounts);
        }
        public static CloudStorageAccount GetAccount(string connectionStringName)
        {
            string connectionString = ConnectionStringProvider.GetConnectionString(connectionStringName);

            if (connectionString == null)
            {
                return(null);
            }

            CloudStorageAccount account;

            if (!CloudStorageAccount.TryParse(connectionString, out account))
            {
                return(null);
            }

            return(account);
        }