示例#1
0
        private async Task BuildSFQueuesAsync()
        {
            SFSpinner.StartSpinning();
            bool success;

            string[] sfQueues = default(string[]);
            try
            {
                sfQueues = await Task.Run(() => ConnectionChecker.TryNTimesAsync <string[]>(SFConnector.Instance.GetCasesQueues, 1, "Generating SalesForce Queues"));

                success = true;
            }
            catch (Exception ex)
            {
                LoggerController.Log(ex);
                success = false;
            }
            sfQueue.ItemsSource = sfQueues;
            SFSpinner.StopSpinning(success);
        }
示例#2
0
        private async Task BuildTFSQueuesAsync()
        {
            TFSSpinner.StartSpinning();
            bool success;

            string[] tfsQueues = default(string[]);
            try
            {
                tfsQueues = await Task.Run(() => ConnectionChecker.TryNTimesAsync <string[]>(TFSConnector.Instance.GetCasesQueues, 1, "Generating TFS Queues"));

                success = true;
            }
            catch (Exception ex)
            {
                LoggerController.Log(ex);
                success = false;
            }
            tfsQueue.ItemsSource = tfsQueues;
            TFSSpinner.StopSpinning(success);
        }