示例#1
0
        public bool Handle(BackgroundTask task, BackgroundTaskService.BackgroundTaskLog log)
        {
            var importService = new AcademicBenchmarkImport.ImportService(log);

            importService.Import();

            return(true);
        }
示例#2
0
        public void ImportTest()
        {
            var importService = new AcademicBenchmarkImport.ImportService(null);

            try
            {
                importService.Import();
            }
            catch (Exception e)
            {
                Debug.WriteLine(e.Message);
                Debug.WriteLine(e.StackTrace);
                if (e.InnerException != null)
                {
                    Debug.WriteLine(e.InnerException.Message);
                    Debug.WriteLine(e.InnerException.StackTrace);
                    if (e.InnerException.InnerException != null)
                    {
                        Debug.WriteLine(e.InnerException.InnerException.Message);
                        Debug.WriteLine(e.InnerException.InnerException.StackTrace);
                    }
                }
            }
        }