Exemplo n.º 1
0
        public void SetDbs(object button)
        {
            var btn = button as Button;

            btn.IsEnabled = false;
            var task = Task.Run(() => {
                WorkloadSetupInfo.SetValue(WorkloadSetupKeys.DBS, GetDbsBySelectedCluster());
            });

            task.GetAwaiter().OnCompleted(() => {
                btn.IsEnabled = true;
            });
        }
Exemplo n.º 2
0
 public void SetClusterInfo()
 {
     WorkloadSetupInfo.SetValue(WorkloadSetupKeys.CLUSTERS, GetClusterInfo());
 }