Exemplo n.º 1
0
        private async Task RefreshStorageAccounts()
        {
            this.Accounts.Clear();
            var storageService = new LocalStorageService();
            var accounts       = await storageService.GetStorageAccounts();

            foreach (var item in accounts)
            {
                try
                {
                    var client = new AzureStorageClient(item);
                    item.IsConnected = true;
                }
                catch (Exception ex)
                {
                    // error
                    item.IsConnected = false;
                }
                this.Accounts.Add(item);
            }
        }