Exemple #1
0
        private Task RefreshServersAsync()
        {
            IsServersRefreshing = true;

            Servers.Clear();

            return(TaskHelper.RunAndWaitAsync(() =>
            {
                var servers = _connectionStringBuilderService.GetDataSources(ConnectionString);
                Servers.AddItems(servers);

                IsServersRefreshing = false;
                _isServersInitialized = true;
                IsServerListVisible = true;
            }));
        }