Ejemplo n.º 1
0
        private void buildBusinessLayersHashtable()
        {
            businessLayers = new Hashtable();
            //var p = Activator.CreateInstance(typeof(IBudgetItemBL));
            try
            {
                businessLayers.Add(typeof(AnnualBudget), annualBudgetBL);
                businessLayers.Add(typeof(MonthlyBudget), monthlyBudgetBL);

                businessLayers.Add(typeof(Salary), salaryBL);
                businessLayers.Add(typeof(Expense), expenseBL);
                businessLayers.Add(typeof(Cheque), chequeBL);
                businessLayers.Add(typeof(CreditCard), creditCardBL);

                businessLayers.Add(typeof(MonthlyPlanTemplate), monthlyTemplateBL);
            }
            catch (Exception Ex)
            {
                string errMessage = "Business layers hashtable creation was failed.";
                _log.Error(string.Format("{0} : {1} {2}", this.GetType().Name, errMessage + Environment.NewLine, Ex.Message), Ex);
                throw;
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 ///  Расширенное логирование. Локальный лог. Записать в лог ошибку.
 /// </summary>
 /// <param name="message"></param>
 public static void Error(string message)
 {
     // Расширенное логирование(локально)
     _localLogger.Error(message);
 }