Exemple #1
0
        public async Task LoadEntries()
        {
            try
            {
                var parser                   = new Parser(_providerSettings);
                var transformerService       = new EntryTransformerService(parser);
                var excelTermLoader          = new ExcelTermLoaderService(_providerSettings);
                var excelTermProviderService = new ExcelTermProviderService(excelTermLoader, transformerService);

                _termEntries = await excelTermProviderService.LoadEntries();

                TermsLoaded?.Invoke(_termEntries);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemple #2
0
        public async Task LoadEntries()
        {
            try
            {
                var parser                   = new Parser(ProviderSettings);
                var transformerService       = new EntryTransformerService(parser);
                var excelTermLoader          = new ExcelTermLoaderService(ProviderSettings);
                var excelTermProviderService = new ExcelTermProviderService(excelTermLoader, transformerService);

                Terms = await excelTermProviderService.LoadEntries();

                TermsLoaded?.Invoke(Terms);
            }
            catch (Exception ex)
            {
                Log.Logger.Error($"LoadEntries method: {ex.Message}\n {ex.StackTrace}");
                throw ex;
            }
        }
Exemple #3
0
        public async Task LoadEntries()
        {
            try
            {
                var parser                   = new Parser(_providerSettings);
                var transformerService       = new EntryTransformerService(parser);
                var excelTermLoader          = new ExcelTermLoaderService(_providerSettings);
                var excelTermProviderService = new ExcelTermProviderService(excelTermLoader, transformerService);

                _termEntries = await excelTermProviderService.LoadEntries();

                TelemetryService.Instance.AddMetric("Loaded Terms", _termEntries.Count);
                TermsLoaded?.Invoke(_termEntries);
            }
            catch (Exception ex)
            {
                TelemetryService.Instance.AddException(ex);
                throw;
            }
        }