public T Invoke <T>() where T : class, new() { #region logger _logger.Info("InitializationContext Invoke run..."); #endregion try { ToParsing(); #region logger _logger.Info($"Parsing is completed... count {_parsingResult.Count}"); #endregion return(_parsingResult as T); } catch (AggregateException ex) { ExceptionHandler.Aggregate(ex, _logger, ">>> InitializationContext Invoke"); } catch (Exception ex) { ExceptionHandler.Another(ex, _logger, ">>> InitializationContext Invoke"); } return(null); }
public T Invoke <T>() where T : class, new() { #region logger _logger.Info("Calculation Context run..."); #endregion try { Distributor(); } catch (AggregateException ex) { ExceptionHandler.Aggregate(ex, _logger, ">>> CalculationContext Invoke"); } catch (Exception ex) { ExceptionHandler.Another(ex, _logger, ">>> CalctulactionContext Invoke"); } return(null); }