Ejemplo n.º 1
0
        private void AppDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
        {
            _logger.Exception(e.Exception);

            //#if DEBUG   // In debug mode do not custom-handle the exception, let Visual Studio handle it
            //    e.Handled = false;
            //#else
            ShowUnhandledException(e);
            //#endif
        }
        private async Task <ObservableCollection <Build> > GetBuildsAsync()
        {
            try
            {
                var serviceResponse = await _azureDevOpsService.GetProjectBuildsAsync(_projectName);

                return(new ObservableCollection <Build>(serviceResponse.Builds.AsEnumerable()));
            }
            catch (Exception ex)
            {
                _logger.Exception(ex);
            }

            return(new ObservableCollection <Build>());
        }
Ejemplo n.º 3
0
        private async Task <ObservableCollection <Repos> > GetReposAsync(string projectName)
        {
            try
            {
                var serviceResponse = await _azureDevOpsService.GetReposAsync(projectName);

                return(new ObservableCollection <Repos>(serviceResponse.Repos.AsEnumerable()));
            }
            catch (Exception ex)
            {
                _logger.Exception(ex);
            }

            return(new ObservableCollection <Repos>());
        }